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
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 |
|---|---|
| Email subject |
| Email body |
| Target group of admins. Possible values: 'TTYD', 'DATA_SHOP' |
| Maximum number of retry attempts for sending the email. If |
| Timeout (in seconds) for the SMTP server response. If |
Example
CALL "SYSADMIN.sendEmailToAdmins"(
"subject" => 'testmail',
"body" => '<body>Hello!</body>',
"adminGroup" => 'TTYD',
"maxRetries" => 2,
"responseTimeout" => 30
)
maxRetries and responseTimeout parameters are available since v25.3