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

前端 未结 8 1352
一整个雨季
一整个雨季 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:52

    Here is a really good SitePoint article on HTML emails, "How to Code HTML Email Newsletters".

    0 讨论(0)
  • 2020-12-18 08:57

    How is your stylesheet referenced?

    For email you will either have to provide an absolute path to your stylesheet or include the styles in the head of the template

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