我正在从网站发送电子邮件。它在 Gmail、Outlook、Android、iPhone/iPad 中呈现良好,但在 Apple Mail (Yosemite) 中呈现不佳。我尝试过修改标题,但似乎并不重要。我目前使用 mailgun 作为发件人,以防万一。这是一些标题...
(为了进行测试,我还发送了带有单行的 text/plain
格式,看看它是否有所不同。)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
这是最奇怪的部分,我从来没有遇到过。这是在 Apple Mail 中查看源代码时 HTML 的样子:
<table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" align=3D"center" =
width=3D"700">
整个电子邮件都是空白的。我什至没有看到纯文本中的一行测试线。 Apple Mail 已连接到 GMail 帐户。在 GMail 中查看时,该消息显示正常。
最佳答案
事实证明,这并不是 Apple Mail 本身的问题。这是 npm mailcomposer 的问题,它发送了 quoted-printable
的默认传输选项编码。将其设置为 8bit
解决了问题。
关于node.js - 已发送空白 html 电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29662021/