Exclamation Point in HTML Email

后端 未结 4 1682
[愿得一人]
[愿得一人] 2020-12-15 07:02

I am having a hard time formatting a table in an HTML email. There seems to always be one cell that doesn\'t have the background color or weird white spaces.

Here i

4条回答
  •  别那么骄傲
    2020-12-15 07:15

    I hate to answer my own question but I did find a resolution to the issue, and hopefully someone can use this solution to get rid of the headaches this causes.

    The issue is being caused by use of the mail() function. When I try to send the email, I have a long string of html code. IN FACT, TOO LONG! When I go past 78 characters a BANG! shows up and then jacks with my html or css. RFC 2822

    The resolution is to change it to base-64 encode the data or add \r\n on my long lines of html code. Either way resolves the issue.

    Thanks for the help everyone!

提交回复
热议问题