C# and Mail NewLine Character?

  • Thread starter Thread starter Adam Right
  • Start date Start date
A

Adam Right

Hi,

Is there a way to construct the mail body including newline characters by
using .net framework mailing functions when sending an email? I cannot
insert newline character into the body of the mail.

Thanks...
 
Hi,

I have used all newline characters such as Environment.NewLine, "\r\n",
StringBuilder.AppendLine(). But when the mail body string has contructed, it
contains only "\r\n". Ok it is normal, but when i send this string as a body
of the mail, it does not recognize '\r\n' as an newline character. I hope
you understand my case. Thanks...
 
If you're sending HTML mail (based on the MIME type of the message, not the
presence or lack of HTML tags), then the mail reader will ignore whitespace
including newline. To test this, try replacing the newline with "<br />"
and see what impact that has on your results.
 
Hi,

Is there an option to send mail in HTML format in C# mailing functions?
Thanks...
 
Back
Top