How can I send HTML mails with included CSS with PHPMailer?

前端 未结 8 1391
一整个雨季
一整个雨季 2020-12-18 07:53

I\'ve problem with sending HTML mails with PHPMailer. I make a Smarty template and I got all the HTML code from it. But when I send mail, I got the mail without included CSS

8条回答
  •  无人及你
    2020-12-18 08:32

    I assume you have your CSS in an external file, if so the easiest solution would be to simply move it into the html header inside the mail.

    However, css support in email clients is very wonky, so it might just be crappy rendering on their part.

提交回复
热议问题