Send Mail and the '&' symbol
search cancel

Send Mail and the '&' symbol

book

Article ID: 89808

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Send Mail and the '&' symbol

Environment

Release: AOATAM99000-8.0-Automic-One Automation Tools-Application Manager
Component:

Resolution

Detailed Description and Symptoms

A problem is encountered when using an "&" (ampersand) in outgoing email using SEND_MAIL in the "Process" and/or "Post Process" tabs


Solution

In Automic Script, The "&" is the first character of the name of a script variable. When a "&" is encountered on the Process, Pre Process, or Post Process tabs, it is treated as the start of a script variable name.  Placing the name in quotes/double quotes does not change how the "&" character is interpreted.

 

Try adding the following Automic script lines to include the '&' in your email address.

 

Example:

:set &amb# = '&'

:set &email# = '&&[email protected]'

:RSET &ONCALL2=GET_VAR(VARA.MAESTRO.PARAMS,'ONCALL')

:SET &RET = SEND_MAIL('&email#','','OKPAGE','Automic OK',)