system.net. sendEmail( smtp, fromAddr, [ subject ] , [ body ] , [ html ] , to, [ attachmentNames ] , [ attachmentData ] , [ timeout ] , [ username ] , [ password ] , [ priority ] , [ smtpProfile ] , [ cc ] , [ bcc ] , [ retries ], [replyTo] )
String smtp - The address of an SMTP server to send the email through, like "mail.example.com". A port can be specified, like "mail.example.com:25". SSL can also be forced, like "mail.example.com:25:tls".
String fromAddr - An email address to have the email come from.
String subject - The subject line for the email. [optional]
String body - The body text of the email. [optional]
Boolean html - A flag indicating whether or not to send the email as an HTML email. Will auto-detect if omitted. [optional]
List[String] to - A list of email addresses to send to.
List[String] attachmentNames - A list of attachment names. Attachment names must have the correct extension for the file type or an error will occur. [optional]
List[Byte] attachmentData - A list of attachment data, in binary format. [optional]
Integer timeout - A timeout for the email, specified in milliseconds. Defaults to 5 minutes (60,000*5). [optional]
String username - If specified, will be used to authenticate with the SMTP host. [optional]
String password - If specified, will be used to authenticate with the SMTP host. [optional]
String priority - Priority for the message, from "1" to "5", with "1" being highest priority. Defaults to "3" (normal) priority. [optional]
String smtpProfile - If specified, the named SMTP profile defined in the Gateway will be used. If this keyword is present, the smtp, username, and password keywords will be ignored. [optional]
List[String] cc - A list of email addresses to carbon copy. Only available if an smtpProfile is used. [optional]
List[String] bcc - A list of email addresses to blind carbon copy. Only available if an smtpProfile is used. [optional]
Integer retries - The number of additional times to retry sending on failure. Defaults to 0. Only available if an smtpProfile is used. [optional]
List[String] replyTo - An list of addresses to have the recipients reply to. If omitted, this defaults to the from address. [optional]
Gateway, Vision Client, Perspective Session