Tips and TricksMS Outlook messing up line breaks ?

MS Outlook messing up line breaks ?

I am using Microsoft Outlooks and when i send simple cron emails with line breaks, outlook removes all the line breaks.

One has to click “Extra Line breaks in this message were removed -> restore line breaks” to get the correct formatting.

There are 2 approaches to solve this

MS Outlook approach ( client side )

You can use this setting to always restore line breaks when you open a message

  1. In MS Outlook go to Options -> Mail -> Message Format
  2. Un-ckeck “Remove Extra line breaks in plain-text message

This works for one or 2 clients – but if you are sending this to thousands of clients, you will have to instruct each one of them to change their setting 🙁

But you can use the server side approach to get away with this

Programmatic Approach ( server side )

  1. Add 2 spaces to the beginning of each line ( Outlook will keep your line breaks )
  2. Else add a tab character at the end of each line ( Outlook will keep your line breaks )

Could not find the technical answer on why Outlook behaves weird, but here are a few links that helped

http://www.masternewmedia.org/newsletter_publishing/newsletter_formatting/remove_line_breaks_issue_Microsoft_Outlook_2003_when_publishing_text_newsletters_20051217.htm

http://stackoverflow.com/questions/247546/outlook-autocleaning-my-line-breaks-and-screwing-up-my-email-format

Categories: Tips and Tricks

Comments

  1. Jfk

    March 1, 2016 10:46 am

    Thanks dude! A simple tweak that solve a problem that a whole bunch of programmers can't for over weeks!
  2. Emily

    November 9, 2015 10:38 pm

    I am having this issue and unchecking the “Remove Extra line breaks in plain-text message“ did not resolve it. This is in Outlook 2013.
  3. Vince

    September 9, 2015 3:37 pm

    I had the same problem too. tried different ways of coding but no luck. your tricks did it. thank you!
  4. October 25, 2014 9:06 pm

    […] MS Outlook messing up line breaks ? | Naveen S Nayak’s Blog – I am using Microsoft Outlooks and when i send simple cron emails with line breaks, outlook removes all the line breaks. … You can use this setting to always restore line breaks when you open a message. In MS Outlook go to Options -> Mail -> Message Format; […]
  5. Kev

    March 25, 2014 12:47 pm

    Thanks. going html was harder because of integration with other compoment. Your tab trick did the job. Now if we could punch those outlook developper that thought that adding a function to break a plain text layout was a good idea...
  6. Gaurav

    February 12, 2014 9:10 am

    Thanks, saved me a lot of effort.. :)

Post a comment

Your email address will not be published. Required fields are marked *