Home > Tips and Tricks > MS 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



Categories: Tips and Tricks
  1. Gaurav
    February 12, 2014 at 9:10 AM

    Thanks, saved me a lot of effort..šŸ™‚

  2. Kev
    March 25, 2014 at 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…

  3. Vince
    September 9, 2015 at 3:37 PM

    I had the same problem too. tried different ways of coding but no luck. your tricks did it. thank you!

  4. Emily
    November 9, 2015 at 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.

  5. Jfk
    March 1, 2016 at 10:46 AM

    Thanks dude! A simple tweak that solve a problem that a whole bunch of programmers can’t for over weeks!

  1. October 25, 2014 at 9:06 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: