0

I am sending some emails from Python using smtplib MIMEtext; and have the often noted problem that Outlook will "sometimes" remove what it considers "extra line breaks".

It is odd, because I print several headers and they all break find, but the text fields in a table are all smooshed - unless the recipient manually clicks Outlook's "restore line breaks".

Because some come through alright, I wonder what is Outlook's criteria for "extra", and thus how to avoid it?

Do I need to format the message as HTML?

guthrie
  • 4,529
  • 4
  • 26
  • 31

1 Answers1

0

You won't be able to fix this. Outlook does it no matter how many line breaks you put in there in my experience. You might be able to trick it by adding spaces on each line, or non-breaksping space characters. It's a dumb feature of outlook....

Artagel
  • 390
  • 1
  • 12
  • Thanks. I reformatted the output lines, with some additional spaces (for appearance), and it went away. Argh. There must be some solution - since most all Outlook emails do display correctly - perhaps they are HTML? – guthrie Mar 24 '17 at 20:20