sendMail

fnvoid 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

settingsSettings to send this email (e.g. server, credentials, TLS context)
mailThe email data to send
timeoutA timeout that will be applied to connection & reading.