Line breaks ignored when sending mail as plain text

Rocky Singh picture Rocky Singh · Jul 13, 2011 · Viewed 17.9k times · Source

I have a text like " Hi, \r\n this is test \r\n Thanks" I am sending the mail using MailMessage class. I have set the "IsBodyHtml" property to false. The issue is that I am receiving mails without line breaks. Can you let me know what I am missing?

Answer

hungryMind picture hungryMind · Jul 13, 2011

Use Environment.NewLinemsdn instead of \r\n.