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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top