Sends an email through SMTP.
This function is exported by the KS module.
Mail(Recipients, Subject, Message , Options)
A recipient or list of recipients.
Type: String
The message subject.
Type: String
The message body.
A Map containing zero or more of the following keys:
| Key | Value |
|---|---|
attachments | A path or Array of attachment paths. |
bcc | A recipient or Array of blind-copy recipients. |
cc | A recipient or Array of copy recipients. |
from | Comma-separated From address. |
replyto | Comma-separated Reply-To address. |
host | SMTP hostname and port in hostname:port form. |
header | Additional header text. |
Security warning: Avoid embedding mail credentials in a script. Use an operating-system credential store or another protected configuration mechanism.