Wanted Line Break in the body of SMTP Mail

dparvathanenidparvathaneni Member Posts: 10
hi,
I'm using nav 5.0 ,codeunit 400 smtp mail
i wanted the mail body to print in this format

Respected Sir,

how r u?

Thanks and Regards.

but it is printing in this format
Respected Sir,how r u? Thanks and Regards.

this is the code written for it

smtpmail.AppendBody(' ');
smtpmail.AppendBody(Text002);
smtpmail.AppendBody(' ');
smtpmail.AppendBody(Text004);
smtpmail.AppendBody(' ');
smtpmail.AppendBody("Text 005");
smtpmail.AppendBody(' ');

PLz help me fix the problem

Comments

  • garakgarak Member Posts: 3,263
    Send a ASCII 13 CR and if needed also a ASCII 10 LF (Char 13 / Char 10).

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.