Have you already tried this? :
messageBody = messageBody + strFmt("%1%2", "user:cdlmalherbe",
num2char(10)); ?
or
messageBody = messageBody + strFmt("%1%2", "user:cdlmalherbe", '/n'); ?
with kind regards,
Pascal
http://www.axapta-links.com <http://www.axapta-links.com/> - The startpage
for Axapta !
_____
Van: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] Namens cdlmalherbe01
Verzonden: woensdag 24 augustus 2005 18:37
Aan: development-axapta@yahoogroups.com
Onderwerp: [development-axapta] Carriage Return in SysMailer body
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
* Visit your group "development-axapta
<http://groups.yahoo.com/group/development-axapta> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
_____
[Non-text portions of this message have been removed]
SPONSORED LINKS
Computer part | Programming languages | Microsoft axapta |
Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.