ColdFusion CFMail 无法发送 HTML

ColdFusion CFMail wont send HTML

我遇到了一个奇怪的问题,这让我很困惑。如果我发送这样的电子邮件(如下),它发送正常。电子邮件的内容是 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 邮件日志显示我的电子邮件已成功发送。

我让我们的网络团队也在寻找问题,但令人费解。任何建议将不胜感激。

一些电子邮件客户端拒绝 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