Preprocessing may also be performed within the Message Text section of the Job Notifications tab. This allows variables or parameters to be substituted into any of the following control phrases:
The following change the format of the notification emails, overriding the default format. Starting with version 7.6.12, the HTML format is the default format for all jobs. The default format can be changed by modifying the notification script.
Only implemented on UNIX, Linux and Windows:
Multiple attachments are possible, UNIX/Linux also allows wildcards in the attachment name
For instance, if you want to have a variable that contains a list of e-mail addresses to send notifications to in a number of jobs, you can put the control phrase
EMAIL="((email_address1))"
And have a variable defined as
my-mail@example.com, your-mail@example.com
The processed message text would be:
EMAIL="my-mail@example.com, your-mail@example.com"
Another example would be if you want to be able to change the name of an attachment based on a variables value in this case the day of the week, you can use a predefined EnterpriseSCHEDULE Expression Variable to
ATTACHMENT="c:\logs\Report_((\sys\Dayoftheweek)).pdf"
The processed message text would be:
ATTACHMENT="c:\logs\Report_Tuesday.pdf"
depending on the day of the week.
Note: \sys\Dayoftheweek is a variable included with EnterpriseSCHEDULE. See the \sys\ directory for many more.