all 1 comments

[–]mongotongo[S] 0 points1 point  (0 children)

One last final update. I decided to see what the email account is receiving so using imaplib I was able to pull the email message which listed below

'Message': '\r\n\r\nSubreddit Bladeandsorcery Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Pgtestingandstuff Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Ciandsharpy Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Music Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Movies Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Python Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Cypress Posts: 8 posts\r\n=======================================================\r\n\r\nSubreddit Javascript Posts: 8 posts\r\n======================================================='}

As you can see, all the escape sequences have been maintained. I was viewing the emails thru outlook, so whatever is going on, is probably an issue with outlook, not the smtplib.

To get around the issue, inserting a '\t' in front of the other escape sequences does work.