360works "Illegal semicolon, not in group" for multiple recepients
I am having trouble with a custom message body for each recipient. The below script is only using the content of Email::body from the first record. any ideas? I would like to have a concatenated body field:
Email::body = "Dear" & Email::first_name & "..... the rest of the message".
when doing a test email with 3 family members in my foundset. again, the loop only sets the body of the first record.
// First connect to the SMTP server and create the message. Set Variable [ $msgCreate = EmailConnectSMTP( "mail.example.com" ) and EmailCreate( Email::from ; Email::to ; Email::subject ) and EmailSetBody( GetAsCSS( Email::body ); "html" ) ] Go To Record/Request [ First ] Loop Set Variable [ $setRecipients = EmailRecipients [ Email::to ] ] Set Variable [ $msgSend = EmailSend ] Go To Record/Request [ Next ; Exit After Last ] End Loop // We've sent the same message to all recipients. Now disconnect Set Variable [ $disconnect = EmailDisconnect ] thanks in advance for any advice!
Who Viewed the Topic