配置说明
- 邮件地址:就是您用来发信的邮箱 例如 123123@qq.com
- 发件人姓名:就是别人看到的名称,这个可以自定义
- 发信HOST:一般可以在邮箱后台查看,QQ一般是smtp.exmail.qq.com
- 发送端口:一般可以在邮箱后台查看
- 邮箱密码:就是您自己的邮箱密码
模板您可以在论坛找到一些好看的,或者可以自行编辑
模板参考
<div style="margin: 0;padding: 0;width: 100%;">
<div style="width: calc(100% - 80px);border: 2px solid #235eff;margin: 0 auto;padding: 20px;border-radius: 10px;">
<p style="margin: 0;">你的系统名称</p>
<p style="text-align: center;font-size: 16px;">您的验证码为 <span style="color: #235eff;font-weight: 800;">{code}</span> ,请在3分钟内使用!</p>
<p style="text-align: center;font-size: 14px;color: #999;">我们不会以任何方式向您索要验证码,请勿将验证码告知他人</p>
<p style="text-align: center;">
<a style="text-decoration: none;color: #235eff;font-size: 14px;" href="/">访问首页</a>
<a style="text-decoration: none;color: #235eff;font-size: 14px;" href="/">在线客服</a>
</p>
</div>
</div>
{/tabs-pane}
{tabs-pane label="优化模板"}
<div>
<includetail>
<style>
/* CLIENT-SPECIFIC STYLES */
body,
table,
td,
a {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table,
td {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
img {
-ms-interpolation-mode: bicubic;
}
.hidden {
display: none !important;
visibility: hidden !important;
}
/* iOS BLUE LINKS */
a[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
/* ANDROID MARGIN HACK */
body {
margin: 0 !important;
}
div[style*="margin: 16px 0"] {
margin: 0 !important;
}
@media only screen and (max-width: 639px) {
body,
#body {
min-width: 320px !important;
}
table.wrapper {
width: 100% !important;
min-width: 320px !important;
}
}
</style>
<style>
body {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
img {
-ms-interpolation-mode: bicubic;
}
body {
margin: 0 !important;
}
</style>
<table border="0" cellpadding="0" cellspacing="0" id="body"
style="text-align: center; min-width: 640px; width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: 0; padding: 0;"
bgcolor="#fafafa">
<tbody>
<tr class="line">
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; height: 4px; font-size: 4px; line-height: 4px; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt;"
bgcolor="#6b4fbb">
</td>
</tr>
<tr class="header">
<td
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1.6; color: #5c5c5c; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 25px 0;">
<img src="http://192.168.10.105/assets/mailers/gitlab_header_logo-153749eaa7ea6fafcb995161abd3247bc4c4500f31498b0c4024f50093983ac0.gif"
width="55" height="50" style="-ms-interpolation-mode: bicubic;">
</td>
</tr>
<tr>
<td
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
<table border="0" cellpadding="0" cellspacing="0" class="wrapper"
style="width: 640px; border-collapse: separate; border-spacing: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; margin: 0 auto;">
<tbody>
<tr>
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; border-radius: 3px; overflow: hidden; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 18px 25px; border: 1px solid #ededed;"
align="left" bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" class="content"
style="width: 100%; border-collapse: separate; border-spacing: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
<tbody>
<tr>
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; color: #333333; font-size: 15px; font-weight: 400; line-height: 1.4; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 15px 5px;"
align="center">
<h1 style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; color: #333333; font-size: 18px; font-weight: 400; line-height: 1.4; margin: 0; padding: 0;"
align="center">
你好,张三!
</h1>
<p>
您的验证码为
</p>
<div id="cta">
<a>{code}</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="footer">
<td
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1.6; color: #5c5c5c; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 25px 0;">
<img height="33"
src="http://192.168.10.105/assets/mailers/gitlab_footer_logo-078860f148cc9596195e6bb3fa7db31c30538355576c5c3b569c414902e3d095.gif"
style="display: block; -ms-interpolation-mode: bicubic; margin: 0 auto 1em;" width="90">
<div>
您收到这封电子邮件是因为你在 XX平台 拥有帐户。
<a style="color: #3777b0; text-decoration: none; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;"
href="">
管理全部通知
</a>
</div>
</td>
</tr>
</tbody>
</table>
</includetail>
</div>
{/tabs-pane}
我来讲讲 (0)