Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Fri Aug 26, 2011 12:55 pm Post subject: Outlook Is Stripping Line Breaks From Plain-Text Emails |
|
|
Microsoft Office Outlook 2010
Microsoft Office Outlook 2007
Microsoft Office Outlook 2003
Microsoft Outlook 2002
Today I was supporting a client that reply an plain-text email.
The problem I unearthed today is that when viewing the plain-text reply email signature in Microsoft Outlook, everything look fine.
But when received and viewed by recipients, the carriage returns were being removed, making the email signature difficult to read.
The code is very simple and straightforward, looking something like:
| Preview in Outlook sent folder wrote: | This is the first line.
Line #2: blah
Line #3: blah blah
Line #3: blah blah blah |
When viewing the message in the Outlook inbox it would come out like so:
| Preview in Outlook inbox wrote: | | This is the first line. Line #2: blah Line #3: blah blah Line #3: blah blah blah |
Note how the carriage returns between each of the lines has been removed. Boo.
The behavior is not due to the code that generates the email, but rather how Outlook displays a message. (For instance, Gmail displays the carriage returns as you'd expect.) Outlook strips out what it identifies an unnecessary carriage returns. If you open the email in Outlook you'll see a little informational bar at the top of the email explaining that Outlook has removed extra line breaks and that you can click it to add them back in.
You can configure Outlook to never remove such carriage returns by going to Tools > Options, clicking the E-mail Options button, and then unchecking “Remove extra line breaks in plain text messages.“
Of course, it's never a good strategy to tell your customers that the problem is on their end and that they need to do something to fix the problem. The good news is that you use GPO to untick the setting so that Outlook won't automatically remove the line breaks.
Alternatively, try including an empty space character at the end of each line. _________________ </Jesper> | Test Email Signature | Showcase |  |
|