sendMail
fn
void sendMail(in SMTPClientSettings settings, Mail mail, in Duration timeout = Duration.max())Sends an e-mail using the given settings.
The mail parameter must point to a valid Mail object and should define at least the headers "To", "From", Sender" and "Subject".
Valid headers can be found at http://tools.ietf.org/html/rfc4021
Parameters
settings | Settings to send this email (e.g. server, credentials, TLS context) |
mail | The email data to send |
timeout | A timeout that will be applied to connection & reading. |