简体   繁体   English

Salesforce HTML 电子邮件模板

[英]Salesforce HTML Email Template

Just a general question regarding HTML Email Templates on Salesforce.只是一个关于 Salesforce 上的 HTML 电子邮件模板的一般问题。 I have researched various ways to incorporate an Email Template with HTML Markup but once I preview the email the HTML markup is displayed.我研究了将电子邮件模板与 HTML 标记合并的各种方法,但是一旦我预览电子邮件,就会显示 HTML 标记。 Specifically, how do I place an HTML button to be displayed on an email template to be used for an email alert?具体来说,如何将 HTML 按钮放置在用于电子邮件警报的电子邮件模板上? Thank you for your time and consideration感谢您的时间和考虑

If you're looking for a easy bullet proof email button, you can copy&paste this one.如果您正在寻找一个简单的防弹电子邮件按钮,您可以复制并粘贴这个按钮。

<!-- Button -->
<table align="center" width="150">
<tr>
<td align="center" bgcolor="#F18200" width="150" style="border: 1px solid #DF7901;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;">
<a href="#" target="_blank" style="font-size: 18px; font-family: Helvetica, Arial, sans-serif; font-weight:bold; color: #ffffff; text-decoration: none; text-align: center; color: #ffffff; text-decoration: none; padding: 12px 18px 12px 18px; border: 1px solid #F18200; display: inline-block; width:150px;">Apply Now &rarr;</a>
</td>
</tr>
</table>

If you need it centered, just wrap it in good ol center tags and that should do the trick.如果您需要将其居中,只需将其包裹在良好的 ol center 标签中即可。 I've tested and works well for my sends.我已经测试过并且非常适合我的发送。

You can use bulletproof button您可以使用防弹按钮

 <tr> <td align="center" style="padding: 0; font-size: 12px;color: #717171; font-family: 'Verdana', 'Arial', 'Helvetica', sans-serif;"> <!-- BULLETPROOF BUTTON --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td align="center" style="padding-top: 16px;padding-bottom: 19px;" class="padding"> <table border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td align="center" style="border-radius: 2px;" bgcolor="#906197"> <a href="#" target="_blank" style="font-size: 14px; font-family: 'Verdana', 'Arial', 'Helvetica', sans-serif; font-weight: bold; text-decoration: none; color: #ffffff; text-decoration: none; border-radius: 2px; padding: 9px 15px; border: 1px solid #906197; display: inline-block;" class="mobile-button">REGISTER NOW</a> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM