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

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

    CSS support in e-mail is very limited, at least. The biggest issue is that different clients support different sets of CSS-properties.

    You provide very little context for us to work with.

    • How is your e-mail showing? Is CSS not parsed at all? Is your CSS showing on-screen as text?
    • How does your CSS look?
    • How does your e-mail template look?

    For more information on CSS support in e-mail, please refer to this excellent overview.

提交回复
热议问题