feat(mail): redesign responsive email templates
parent
01bb3c8b5b
commit
88f38d933f
@ -1,181 +1,16 @@
|
||||
<!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"
|
||||
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>Billing e.g. invoices and receipts</title>
|
||||
{extends file='layout.tpl'}
|
||||
|
||||
{block name='email_title'}数据库备份已完成 | {$config["appName"]|escape:"html"}{/block}
|
||||
{block name='preheader'}数据库备份已完成,备份文件随邮件发送。{/block}
|
||||
|
||||
<style type="text/css">
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
{block name='content'}
|
||||
<p style="margin:0 0 9px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.7px;">SYSTEM BACKUP</p>
|
||||
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:28px; line-height:36px; font-weight:800; letter-spacing:-.5px;">数据库备份已完成</h1>
|
||||
<p class="email-copy" style="margin:0 0 22px; color:#53647a; font-size:15px; line-height:25px;">系统已完成本次数据库备份,备份文件已作为附件随邮件发送。</p>
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-size-adjust: none;
|
||||
width: 100% !important;
|
||||
height: 100%;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%; margin:0 0 20px;">
|
||||
<tr><td class="email-panel" bgcolor="#f2f6f9" style="padding:17px 18px; background-color:#f2f6f9; border-radius:11px; color:#34485d; font-size:14px; line-height:23px;">{$text|default:'备份任务已成功完成。'|escape:"html"|nl2br}</td></tr>
|
||||
</table>
|
||||
|
||||
body {
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 640px) {
|
||||
body {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 800 !important;
|
||||
margin: 20px 0 5px !important;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: 800 !important;
|
||||
margin: 20px 0 5px !important;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: 800 !important;
|
||||
margin: 20px 0 5px !important;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: 800 !important;
|
||||
margin: 20px 0 5px !important;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 22px !important;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 18px !important;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.content-wrap {
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
.invoice {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body itemscope itemtype="http://schema.org/EmailMessage"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;"
|
||||
bgcolor="#f6f6f6">
|
||||
|
||||
<table class="body-wrap"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;"
|
||||
bgcolor="#f6f6f6">
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
|
||||
valign="top"></td>
|
||||
<td class="container" width="600"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;"
|
||||
valign="top">
|
||||
<div class="content"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
|
||||
<table class="main" width="100%" cellpadding="0" cellspacing="0"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;"
|
||||
bgcolor="#fff">
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td class="content-wrap aligncenter"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 20px;"
|
||||
align="center" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td class="content-block"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
|
||||
valign="top">
|
||||
<h1 class="aligncenter"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; box-sizing: border-box; font-size: 32px; color: #000; line-height: 1.2em; font-weight: 500; text-align: center; margin: 40px 0 0;"
|
||||
align="center">{$config["appName"]}</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td class="content-block"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
|
||||
valign="top">
|
||||
<h2 class="aligncenter"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; box-sizing: border-box; font-size: 24px; color: #000; line-height: 1.2em; font-weight: 400; text-align: center; margin: 40px 0 0;"
|
||||
align="center">备份成功</h2>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td class="content-block aligncenter"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;"
|
||||
align="center" valign="top">
|
||||
<table class="invoice"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; text-align: left; width: 80%; margin: 40px auto;">
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;"
|
||||
valign="top">Hi, <br
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;"
|
||||
valign="top">{$text}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td class="content-block aligncenter"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;"
|
||||
align="center" valign="top">
|
||||
<a href="{$config["baseUrl"]}"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #348eda; text-decoration: underline; margin: 0;">{$config["appName"]}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<td class="content-block aligncenter"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;"
|
||||
align="center" valign="top">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="footer"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
|
||||
<table width="100%"
|
||||
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;"
|
||||
valign="top"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
<p style="margin:0; color:#8390a2; font-size:12px; line-height:20px;">请妥善保管备份附件及解密口令,不要将其转发给无关人员。</p>
|
||||
{/block}
|
||||
|
||||
@ -1,133 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>新年专享优惠</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 600px;
|
||||
background-color: #ffffff;
|
||||
margin: 40px auto;
|
||||
padding: 30px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1, h2, h3 {
|
||||
color: #2C3E50;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
p {
|
||||
color: #555555;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
ul {
|
||||
list-style-type: disc;
|
||||
padding-left: 20px;
|
||||
color: #555555;
|
||||
}
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
background-color: #3498db;
|
||||
color: white;
|
||||
padding: 12px 25px;
|
||||
text-decoration: none;
|
||||
border-radius: 25px;
|
||||
font-weight: bold;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
.cta-button:hover {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
.footer {
|
||||
font-size: 0.85em;
|
||||
color: #999999;
|
||||
text-align: center;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #eaeaea;
|
||||
}
|
||||
.footer p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid #eaeaea;
|
||||
margin: 30px 0;
|
||||
}
|
||||
/* 新增提示信息的样式,使其更醒目 */
|
||||
.info-box {
|
||||
background-color: #ecf9ff;
|
||||
border-left: 4px solid #3498db;
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.info-box p {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<p>亲爱的用户,</p>
|
||||
|
||||
<p>新的一年已经到来,感谢您在过去的一年里对我们产品的支持与信任!为庆祝新年的到来,我们特地为您准备了独家的优惠活动,让您以更优惠的价格继续享受我们的服务。</p>
|
||||
{extends file='layout.tpl'}
|
||||
|
||||
<h2>✨ 新年专享优惠 ✨</h2>
|
||||
{block name='email_title'}新年专享优惠 | {$config["appName"]|escape:"html"}{/block}
|
||||
{block name='preheader'}新年专享套餐优惠,登录控制台即可参与。{/block}
|
||||
|
||||
<ul>
|
||||
<li><strong>轻量套餐、标准季付</strong>:享受 <strong>9折优惠</strong>,低至超值价格,满足您的基础需求!</li>
|
||||
<li><strong>标准年付套餐</strong>:选择年付,即享 <strong>8折优惠</strong>,一次支付,全年无忧!</li>
|
||||
</ul>
|
||||
{block name='content'}
|
||||
<p style="margin:0 0 9px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.7px;">NEW YEAR OFFER</p>
|
||||
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:28px; line-height:36px; font-weight:800; letter-spacing:-.5px;">新年专享优惠</h1>
|
||||
<p class="email-copy" style="margin:0 0 20px; color:#53647a; font-size:15px; line-height:25px;">亲爱的用户,感谢您一直以来对 {$config["appName"]|escape:"html"} 的支持与信任。我们准备了新年专享套餐优惠,期待继续为您提供稳定的服务。</p>
|
||||
|
||||
<h3>🎯 立即行动,享受特惠:</h3>
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f2f6f9" style="width:100%; margin:0 0 20px; background-color:#f2f6f9; border-radius:12px;">
|
||||
<tr><td class="email-panel" style="padding:17px 18px 8px; color:#34485d; font-size:14px; line-height:23px;"><strong style="display:block; margin-bottom:7px; color:#15243a; font-size:15px;">套餐优惠</strong><ul style="margin:0; padding:0 0 0 19px;"><li style="margin:0 0 7px;"><strong>轻量套餐、标准季付:</strong>享受 9 折优惠。</li><li style="margin:0 0 7px;"><strong>标准年付套餐:</strong>享受 8 折优惠。</li></ul></td></tr>
|
||||
<tr><td class="email-panel" style="padding:8px 18px 17px; color:#34485d; font-size:14px; line-height:23px;"><strong style="display:block; margin-bottom:7px; color:#15243a; font-size:15px;">优惠码</strong><span style="display:block;">标准年付:<strong style="color:#0f8f9a;">20%myssr</strong></span><span style="display:block;">轻量套餐、标准季付:<strong style="color:#0f8f9a;">10%myssr</strong></span></td></tr>
|
||||
</table>
|
||||
|
||||
<ul>
|
||||
<li><strong>轻量套餐、标准季付</strong>:适合个人及小团队,价格实惠,轻松入门!</li>
|
||||
<li><strong>标准年付套餐</strong>:如果您已是我们的长期用户,或计划在未来一年内继续使用我们的服务,这个优惠套餐将帮助您节省更多!</li>
|
||||
</ul>
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%; margin:0 0 22px;"><tr><td class="email-panel" bgcolor="#fff7e8" style="padding:15px 16px; background-color:#fff7e8; border-radius:10px; color:#8d611f; font-size:12px; line-height:20px;"><strong style="display:block; margin-bottom:3px; color:#a66a19;">温馨提示</strong>当前套餐如仍有剩余价值,购买新套餐时可按系统页面展示的规则抵扣,并可叠加适用的优惠码。</td></tr></table>
|
||||
|
||||
<p><strong>限时优惠</strong>:该优惠活动仅在 <strong>2025年2月15日之前有效</strong>,错过就没有了哦!赶紧行动吧,抢占新年的优惠福利,继续享受优质服务!</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>如何领取您的优惠?</h3>
|
||||
<p>只需点击下方按钮,登录您的账户并选择心仪的套餐,购买套餐时输入以下优惠码即可应用!</p>
|
||||
|
||||
<p><strong>8折码:</strong> 20%myssr <em>(标准年付可用)</em></p>
|
||||
<p><strong>9折码:</strong> 10%myssr <em>(轻量套餐、标准季付可用)</em></p>
|
||||
|
||||
<!-- 新增提示,告知剩余价值可抵扣且仍可使用优惠码叠加 -->
|
||||
<div class="info-box">
|
||||
<p><strong>温馨提示:</strong>如果您当前仍有套餐剩余时间,系统会自动将未使用的价值抵扣至本次购买费用。抵扣完成后,您依旧可以通过以上优惠码叠加使用折扣,省上加省!</p>
|
||||
</div>
|
||||
|
||||
<a href="https://sockboom.store" class="cta-button">立即登陆优惠</a>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>🌟 更多惊喜 🌟</h3>
|
||||
<p>我们不仅为您提供了优惠,还有更多惊喜等着您!继续关注我们的邮件,了解后续更多的活动和福利。</p>
|
||||
|
||||
<p>感谢您一直以来的支持,我们会继续为您提供更优质的产品和服务!祝您新年快乐,事业蒸蒸日上,万事如意!</p>
|
||||
|
||||
<p>祝福您和您的家人,</p>
|
||||
<p><strong>Sockboom 团队</strong></p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="footer">
|
||||
<p>🌐 访问我们的网站:</p>
|
||||
<p>
|
||||
<a href="https://sockboom.store" style="color: #3498db; text-decoration: none;">sockboom.store</a> |
|
||||
<a href="https://sockboom.store" style="color: #3498db; text-decoration: none;">sockboom.store</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 22px;"><tr><td class="email-button-cell" align="center" bgcolor="#0f9eaa" style="border-radius:9px; background-color:#0f9eaa; mso-padding-alt:13px 22px;"><a class="email-button-link" href="{$config["baseUrl"]|escape:"html"}" style="display:inline-block; padding:13px 22px; color:#ffffff; font-size:14px; line-height:20px; font-weight:800; text-decoration:none; border-radius:9px;">登录查看优惠</a></td></tr></table>
|
||||
<p style="margin:0; color:#8390a2; font-size:12px; line-height:20px;">感谢您的支持。<br><strong style="color:#607086;">{$config["appName"]|escape:"html"} 团队</strong></p>
|
||||
{/block}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<p>This is a testing mail.</p>
|
||||
<p>Send from {$config["appName"]}</p>
|
||||
<p>{$time}</p>
|
||||
</body>
|
||||
</html>
|
||||
{extends file='layout.tpl'}
|
||||
|
||||
{block name='email_title'}邮件服务测试 | {$config["appName"]|escape:"html"}{/block}
|
||||
{block name='preheader'}这是一封邮件服务配置测试邮件。{/block}
|
||||
|
||||
{block name='content'}
|
||||
<p style="margin:0 0 9px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.7px;">DELIVERY TEST</p>
|
||||
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:28px; line-height:36px; font-weight:800; letter-spacing:-.5px;">邮件服务连接正常</h1>
|
||||
<p class="email-copy" style="margin:0 0 22px; color:#53647a; font-size:15px; line-height:25px;">如果您收到这封邮件,说明 {$config["appName"]|escape:"html"} 的邮件发送配置工作正常。</p>
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td class="email-panel" bgcolor="#eaf8f2" style="padding:16px 17px; background-color:#eaf8f2; border-radius:11px; color:#26765c; font-size:13px; line-height:21px;"><strong style="display:block; margin-bottom:3px; color:#208764;">测试发送时间</strong>{$time|default:'—'|escape:"html"}</td></tr></table>
|
||||
{/block}
|
||||
|
||||
Loading…
Reference in New Issue