Simple HTML Email: Basic CSS styles being stripped

后端 未结 1 1333
悲哀的现实
悲哀的现实 2021-01-28 21:40

I am sending a simple email from the command line on a linux machine through a python script. I have looked up answers about why CSS might get changed, stripped, etc. in email c

相关标签:
1条回答
  • 2021-01-28 22:13

    According to RFC 2822 2.1.1, http://www.faqs.org/rfcs/rfc2822.html, each line of an email SHOULD contain less than 78 characters.

    Try inserting some new lines (\n), so that no line is longer than 78 characters. I think this function can do that (Sorry, if not, I'm a PHP developer): http://perldoc.perl.org/Text/Wrap.html

    0 讨论(0)
提交回复
热议问题