Email Notification

The software can automatically send you an email notification message if your tasks fail.  The output log is attached to the email message. 

Email Server Profile
Select the profile name for the email server you need to connect to. You should have previously created an email profile using the Email Profiles menu item.

Selecting Exit Code Criteria
1.  Generally, if your tasks fail, the Exit Code > 0.
2.  Many tasks also sets an exit code of -100 or -101, if a change is detected during monitoring tasks such as: ftp,  local or remote directory monitor.  If you also want to get a message when an exit code of -100 is obtained, you should select the Exit Code != 0 criteria.

Email Recipient
Enter the email address to receive the email message.  To send notification to multiple recipients, separate email addresses by a comma ',' .

Email Subject
If the email subject starts with [DEFAULT], then the default email notification subject is used.  You can enter a customized subject based on special variables as follows:
Task_Title = task title for the task
Task_Type = task type
Exit_Code = exit code for the task
Additionally, you can use dynamic variables like $%IPADRESS%$ or $%SYSNAME%$

Example subject input =  The Task_Type task, Task_Title failed with exit code = Exit_Code
resulting subject = The Copy Directories task, copydata failed with exit code = 3

Email Message
If the email message starts with [DEFAULT], then the default email notification message is used.  You can enter a customized subject based on special variables as follows:
Task_Title = task title for the task
Task_Type = task type
Exit_Code = exit code for the task
Additionally, you can use dynamic variables like $%IPADRESS%$ or $%SYSNAME%$

Example Message Input:
The Task_Type task, title = Task_Title, failed with exit code = Exit_Code.
Host = $%SYSNAME%$
IP Address = $%IPADDRESS%$

Resulting message:
The Copy Directories task, copydata failed with exit code = 3.
Host = win3
IP Address = 192.168.0.3

Headers
You can specify headers to add to the email. This will allow you to add mail priority, or other specific flags. Note that a mail server may not display all the headers you specify, or the mail server may not understand the headers you specify. For example, if you attempt to specify Email priority level, an email server may accept any, or all, or none of the following flags: X-Priority, X-MSMail-Priority, Importance, Priority.

To specify headers, use the following syntax:
header1=value1^header2=value2^header3=value3

Header Examples:
X-Priority=1^ Priority=Urgent
Importance=high
Reply-To=test@test.com