search cancel

Multiple email recipients using ADD_ATT

book

Article ID: 89930

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Multiple email recipients using ADD_ATT

Environment

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

Resolution

Detailed Description and Symptoms
When defining multiple email recipients with ADD_ATT the following error message is returned-

U0050028 SMTP server rejected receiver: '[email protected];[email protected]'
 

Investigation
We determined that this error happens when defining both recipients on the same line-
: READ &RECIPIENTS# ,,
:ADD_ATT RECIPIENT, '&RECIPIENTS#'

Solution
Instead of putting the whole recipient string onto one line from the read buffer, use a separate ADD_ATT command for each recipient in the Process tab.

: READ &RECIPIENTS# ,,
//start while loop and split the RECIPIENTS up
: ADD_ATT RECIPIENT, '&CUR_RECIPIENT#'
//end while loop