Skip to main content
Skip table of contents

sendEmailToAdmins

The sendEmailToAdmins procedure can be used to send emails through an SMTP server to the selected admin group.

To use it, a properly configured SMTP server is needed. An SMTP server can be configured using the setSmtpConfiguration procedure.

Usage

SQL
CALL "SYSADMIN.sendEmailToAdmins"(
    "subject" => 'string_subject',
    "body" => 'string_body',
    "adminGroup" => 'string_adminGroup',
    "maxRetries" => integer_maxRetries,
    "responseTimeout" => integer_responseTimeout
)

SYSADMIN.sendEmailToAdmins procedure is available since v25.2

Parameters

Parameter

Description

subject

Email subject

body

Email body

adminGroup

Target group of admins. Possible values: 'TTYD', 'DATA_SHOP'

maxRetries

Maximum number of retry attempts for sending the email. If NULL, the value from the SMTP configuration will be used

responseTimeout

Timeout (in seconds) for the SMTP server response. If NULL, the value from the SMTP configuration will be used

Example

SQL
CALL "SYSADMIN.sendEmailToAdmins"(
    "subject" => 'testmail',
    "body" => '<body>Hello!</body>',
    "adminGroup" => 'TTYD',
    "maxRetries" => 2,
    "responseTimeout" => 30
)

maxRetries and responseTimeout parameters are available since v25.3

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.