Hi all,

I used to send email notifications using sqlmail but adapted some
code found on this forum to great effect.(thanks a lot!)

The challenge is to have each "line" in messageBody appear as a
separate row in the email's body section when it arrives at the
intended recipient.

Suffixing "num2char(13)+num2char(10)" doesn't seem to work(it does
work when writing out to a file).

Neither \r nor \n seems to work.

Any suggestions will be much appreciated!

Regards,

Christoph Malherbe

*************** code segment ********************
static void SendMail(Args _args)
{
SysEMailBatch mailer;
str messageBody = '';
str cRLF=num2char(13)+num2char(10);
;
messageBody = 'api_id:805399' + cRLF;
messageBody = messageBody + 'user:cdlmalherbe' + cRLF;
messageBody = messageBody + 'password:xxxx' + cRLF;
messageBody = messageBody + 'to:[EMAIL PROTECTED]' + cRLF;
messageBody = messageBody + 'text:test email + cRLF;

mailer = SysEmailBatch::construct();

mailer.parmEmailAddr("[EMAIL PROTECTED]");

mailer.parmMessageBody(MessageBody);

mailer.parmSenderAddr("[EMAIL PROTECTED]");

mailer.run();

}






YAHOO! GROUPS LINKS




Reply via email to