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?
Microsoft Outlook removes line breaks in signatures for messages sent in plain text format. For the sender, the message looks normal but when displayed to the recipient, line breaks are removed so the formatting of the signature is compromised.
You can insert a break into plaintext emails using {! BR()} .
You can configure Outlook to never remove such carriage returns by going to Outlook Options, Mail and then unchecking “Remove extra line breaks in plain text messages.
To send an email in plain text in Gmail, compose a message as you normally would. At the bottom of the compose window, click the three-dot menu and then click Plain text mode. This setting acts as a toggle. To de-activate plain-text mode, re-select the menu option.
Use Environment.NewLine
msdn instead of \r\n.
This is a feature in Outlook, you can turn it off in Outlook. Go to Options - Mail - and under "Message Format" you uncheck "Remove extra line breaks in plain text messages".
Another solution is to add three spaces at the end of each line, when you send the mail. This seems to get Outlook to accept that it is not an extra line break.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With