Multiple email recipients using ADD_ATT

Document ID : KB000089930
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Multiple email recipients using ADD_ATT
Resolution:
Detailed Description and Symptoms
When defining multiple email recipients with ADD_ATT the following error message is returned-

U0050028 SMTP server rejected receiver: 'EXAMPLE@AUTOMIC.COM;EXAMPLE2@AUTOMIC.COM'
 

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