SendMail()
SendMail(recipients, subject, text, isHtml): void
Sends e-mail to specified recipients.
The message is sent through the notification channel named by the DefaultNotificationChannel.SMTP.Text server configuration variable (default: SMTP-Text), or by DefaultNotificationChannel.SMTP.Html (default: SMTP-HTML) when isHtml is true.
recipients |
String |
List of e-mail addresses. Multiple recipients should be separated by ";". |
subject |
String |
E-mail subject. |
text |
String |
E-mail text (body). |
isHtml |
Boolean |
Optional. Indicates whether the text is in HTML. If omitted then false is assumed. |
Return
None. Nothing is sent if the recipient list is empty or the script is executed on behalf of a user without the "Send notifications" system access right.
SendMail("[email protected]", "My subject", "My text", false);
// Equivalent call with the replacement function:
SendNotification("SMTP-Text", "[email protected]", "My subject", "My text");