所以我试图跟随许多视频教程和&培训,但每个人都认为电子邮件服务提供商允许通过他们的预处理器是错误的。一切都被破坏了大多数CSS甚至内联都没有正常显示,特别是在Gmail中。以下是我正在使用的内容:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin:0px; padding:0px;
font-family:'Arial Black';
background-color:gold;
}
h1{
margin:0px; padding:0px;
}
</style>
</head>
<body style="margin:0px; padding:0px; background-color:gold;">
<div style="margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; margin:auto; border:2px solid black; max-width:600px; background-color:gray;" width="100%">
<center>
<img src="http://producerhookup.com/NewsLetters/NewsLetter3/images/Header.jpg" style="max-width:600px; margin:0px; padding:0px;" width="100%"/>
<h1 style=" margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; color:white; font-family:'Arial Black'; font-size:30px;">
Drumma Boy Sound Kit Vol.1!!!
</h1>
<img src="http://producerhookup.com/NewsLetters/NewsLetter3/images/DrummaBoyDrumKit.png" style="max-width:300px; margin:0px; padding:0px;" width="100%"/>
</center>
<p style="margin:0px; padding:0px; margin-left:10px; color:white;">
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum."
</p><br>
<p style="margin:0px; padding:0px; margin-left:10px; color:white;">
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
in culpa qui officia deserunt mollit anim id est laborum."
</p><br>
<center>
<img src="http://producerhookup.com/NewsLetters/NewsLetter3/images/FooterBar.jpg" style="max-width:600px; margin:0px; padding:0px;" width="100%"/>
</center>
</div>
</body>
</html>
&#13;
我错过了通过&amp; amp;获取此HTMl电子邮件模板显示得当吗?感谢。
答案 0 :(得分:0)
很抱歉使用帖子作为回复,但我无法通过移动版SO应用访问评论。
首先,你应该阅读 https://litmus.com/help/email-clients/rendering-engines/
然后注意电子邮件中的HTML很重,可以被视为潜在的危险。所以最好使用普通的短信。更适合您和客户的电子邮件内存
主要问题,正如链接中所说,事实上您不能在电子邮件中包含头标记。它可能会导致一些错误,或者可能无法解释。
我应该引用该网站的所有内容吗?