This module is used to send an email message to one or more recipients. It requires the connection information for an SMTP server that will accept the email messages for forwarding, or delivery if the messages are all going to local recipients.
| Parameter | I/O | Description |
|---|---|---|
| SMTPConnection | In | This should specify an SMTP connection. |
| To | In | This should specify one or more destination email addresses. Multiple email addresses should be separated by comma. See paragraph below on email address formatting. |
| From | In | This can be left empty as long as the connection being used specifies a From address. Otherwise, this can over-ride the From address in a connection and specifies the email address the message should appear to come from. For automated messages, typical convention might be to use an address like noreply@example.com. |
| Subject | In | The subject line of the email message. |
| Message | In | The body text of the email message. The body text can contain basic HTML for formatting. |
| FileSource | In | An option FileList of files to include as attachments to the email message. |
| Priority | In | What priority level the message should be sent as. Valid values are Low, Normal, or High. The default is Normal. |
| LogOutputLevel | In | Minimal: Normal output to the log. Verbose: More detailed output is written to the log, suitable for debugging purposes. |
Email address formatting uses either the plain inbox-host format, or must be in fully quoted displayname format. The plain inbox-host format, {inbox}@{hostname}, is typically what you may always be used to seeing when you type in an email address. An example could be aaron88@example.com. The fully quoted displayname format supports a much friendlier display option on the recipients end when you have their full name along with the email address. These are properly formatted as "Lastname, Firstname <inbox@hostname>". So a corresponding email formatted this way would need to look like "Abernathy, Aaron <aaron88@example.com>".