Comma causing difficulty in SendMail

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Comma causing difficulty in SendMail

Post by kpassaur » Tue Jun 14, 2005 12:47 am

It appears that the when I use the command Readfile and use the results as the body of an email if there are any comma's the portion after the comma is excluded.

I am using version 7.3.11.1 This didn't use to happen; however I changed my script so that the name of the text file is now read from an ini file.

The script is below and I am sure there is an easy fix.

ReadFile>%ebodyfile%,body

Let>k=1
Label>start
ReadLn>%recipients%,k,recipientlists
If>recipientlists=##EOF##,finish
If>%Dialog1.authrequired%=True,Secure,notSecure
Label>Secure
Let>SMTP_AUTH=1
Let>SMTP_USERID=%smtpuid%
Let>SMTP_PASSWORD=%SMTPPASS%
Label>notSecure
Let>SENDMAIL_STATUS=1
SMTPSendMail>%recipientlists%,%MS%,%fromadd%,%Fromname%,%Subject%,%body%,

WriteLn>C:\bulksendmail\mailresults.txt,result,%recipientlists% - %SMTP_RESULT%

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts