Send Mail and the '&' symbol

Document ID : KB000089808
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Send Mail and the '&' symbol
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# = '&&ONCALL2@cingularme.com'

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

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