C # Email - newlines not showing with space: pre-wrap
2 answers
It is related to Outlook (not C #). I have the same problem (using Java to send mail). I use white-space:pre-wrap;
on-span CSS styling and it works well to keep tabs, spaces, newlines, and wrap text in GMail - web, Android and iOS.
According to my experiments on Outlook 2016 Windows app and webapp (outlook.office365.com):
- Pre-wrap value does not preserve newlines in both windows app and webapp
- The pre value preserves newlines in a Windows application, but does not do so in a webapp
+1
source to share