0

I'm trying to mail a html type email and its working, but the problem is when I send a div with class name, when it arrives, the class name changes.

So what I write in the php file is:

<div class="telo" style="width:60%;margin:0 auto">...

And what I can read from the arrived mail is:

<div class="m_-4831917718643650012telo" style="width:60%;margin:0 auto">...

In every div. So how can I solve this?

Thank you for helping!

4

1 回答 1

0

您应该只忽略电子邮件中的类。每个客户的邮件系统都以自己的方式工作,并且并非在所有地方都得到完全支持。始终使用样式标签作为后备选项

可能有用的链接来查看 HTML 邮件支持:

https://www.campaignmonitor.com/css/text-fonts/font-face/

HTML 邮件中的媒体查询信息:

https://litmus.com/blog/understanding-media-queries-in-html-email

于 2018-06-21T20:42:31.160 回答