SendMail method sends an e-mail message to the specified address. It also lets you specify the files that must be sent with this message as attachments.
This method is available if the BuiltIn plugin is installed and enabled. The plugin is installed and enabled by default.
BuiltIn.SendMail(ToAddress, FromHost, FromName, FromAddress, Subject, Body, FileName1, FileName2, ...)
The method is applied to the following object:
The method has the following parameters:
The e-mail address to which the message will be sent. You can specify several addresses separated by commas or semicolons.
The host from which the message will be sent.
The “user-friendly” name of the e-mail sender. If it is not necessary to specify the name, you should pass an empty string to this parameter.
The e-mail address from which the message will be sent.
The message subject.
The message body.
The full paths to the files you want to send with the message.
True if the message was sent successfully, and False otherwise.
See an example in Sending Email From Scripts.