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
- In MS Outlook go to Options -> Mail -> Message Format
- 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 )
- Add 2 spaces to the beginning of each line ( Outlook will keep your line breaks )
- 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