我有个奇怪的问题,这让我很困惑。如果我发送这样的电子邮件(下面),它会发送罚款。电子邮件的内容是html,使用第一种方法发送时,将html内容显示为预期的文本。
<cfmail to="xxxx.xxxx@xxxx.com" from="xxxx.xxxx@xxxx.com" subject="To Oxint">除了将cfmail行更改为以下内容外,我在电子邮件中没有任何更改。
<cfmail to="xxxx.xxxx@oxint.com" from="xxxx.xxxx@xxxx.com" subject="To Oxint" type="html">电子邮件未收到。不是在我的垃圾或垃圾邮件文件夹里。只是没收到。CF邮件日志显示我的邮件发送成功。
我让我们的网络团队也在寻找问题,但它令人困惑。如有任何建议,将不胜感激。
发布于 2015-09-16 16:31:03
一些电子邮件客户端拒绝HTML邮件而没有普通的部分。试试这个:
<cfmail from="someone@somewhere.com" to="someone@somewhereelse.com" subject="always deliver e-mails in plain as well">
<cfmailpart type="text/plain">Here is some text.</cfmailpart>
<cfmailpart type="text/html">Here is some <b>bold</b> text.</cfmailpart>
</cfmail>秩序在这里很重要。先是text/plain,然后是text/html。
https://stackoverflow.com/questions/32613777
复制相似问题