Email activity
Use an Email activity to permit the process to send an email. The email activity can send emails to the recipients from worker resources within TotalAgility or to external resources.
To send emails to external email addresses, you must have relay permission on the SMTP server. Otherwise, you can only send emails to the email addresses listed on the SMTP server.
By default, the relay permission is not enabled for security reasons. Sometimes the SMTP server, SMTP service, or Exchange server are also referred to as Relay servers, as they can relay the mail messages to another mail server.
Before you configure the Email activity, you must configure one of the following:
-
Email server.
-
SPP_SMTP_SERVER variable
By default, a server variable, SPP_SMTP_SERVER with a value of "localhost", is available in TotalAgility. Change this value, depending on the SMTP server you are using. The value of this server variable can be an SMTP server name or IP address.
Once you change the value of the SPP_SMTP_SERVER, restart the TotalAgility Core Worker services for the changes to take effect.
You can also specify the port number on which communications with the SMTP server must take place. By default, the port number used by the email node is 30, which you may change as needed. For example, if your port number to send emails is 60, change the server variable to localhost: 60.
If a value is provided in the SPP_SMTP_SERVER variable and no email server settings are defined within the System (System > System settings > System > Email server (SMTP)), then the SMTP server name available in the variable is used when sending an email. If the email system settings are defined, then those details take preference.
You can configure the subject, attachments, and the rest, and dynamically create the body of the email.
In the Email activity, the plain text is being replaced by a variable with the same name. For example, if you have a variable called ID and if you type the text VOID, the plain text will be replaced by VO[ID]. However, this only happens at design time; at runtime, the values validate and appear correctly.
How to: Configure an Email activity