删除了HTML电子邮件格式 [英] HTML Email formatting stripped out
问题描述
我已经创建了一个非常简单的HTML电子邮件,并且正在对其进行测试。在Apple Mail和mailtrap中,它看起来很完美,但是在Spark中,它看起来像纯文本电子邮件。
I've created a very simple HTML email and am in the process of testing it. In Apple Mail and mailtrap it looks perfect, however, in Spark it looks like a plain-text email.
Title Goes Here
Body goes here
— Company
I收到了来自Twitter的相同布局的电子邮件,它们在Spark中看起来很完美……我所有的样式都是内联的,代码非常基础;我什至尝试使用不同的文档类型,并且没有google字体,但是结果相同。
I've received emails from Twitter with this same layout and they look perfect in Spark... All my styles are inline and the code is very basic; I've even tried it with different doctypes and without google fonts, but with the same results.
我看不到自己在做错什么。
I'm failing to see what I'm doing wrong.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Notification</title>
</head>
<body style="padding: 10px; background-color: #f6f6f6" bgcolor="#f6f6f6">
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; border-radius: 3px; background-color: #ffffff; border: 1px solid #e9e9e9">
<tr>
<td style="border-radius: 3px 3px 0 0; background-color: #cccccc; padding: 40px 0">
<p style="font-family:'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 2em; color: #ffffff; text-align: center">
Title Goes Here
</p>
</td>
</tr>
<tr>
<td style="padding: 40px; color:#222222">
<p style="font-family:'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;">
Body goes here
</p>
<p style="font-family:'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-top: 30px">
— Company
</p>
</td>
</tr>
</table>
</body>
</html>
推荐答案
原来是Spark的错误。
Turns out it's a bug with Spark.
根据他们的客户服务:我们的开发团队已复制了此案,这种电子邮件的显示将得到进一步改善。
Per their customer service: "Our development team has reproduced the case and the display of this type of emails will be improved further on."
这篇关于删除了HTML电子邮件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!