feat(mail): redesign responsive email templates

go
codex 4 weeks ago
parent 01bb3c8b5b
commit 88f38d933f

@ -7,22 +7,22 @@
{block name='content'}
<p style="margin:0 0 10px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.8px; text-transform:uppercase;">{if !empty($scene) && $scene == 'login'}ACCOUNT SECURITY{elseif !empty($scene) && $scene == 'registration'}WELCOME TO THE CLOUD{elseif !empty($scene) && $scene == 'password_change'}ACCOUNT SECURITY{else}EMAIL VERIFICATION{/if}</p>
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:30px; line-height:39px; font-weight:800; letter-spacing:-.6px;">
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:28px; line-height:36px; font-weight:800; letter-spacing:-.5px;">
{if $language == 'true'}{if !empty($scene) && $scene == 'login'}Confirm your sign-in{elseif !empty($scene) && $scene == 'password_change'}Confirm your password change{else}Verify your email address{/if}{else}{if !empty($scene) && $scene == 'login'}确认本次登录{elseif !empty($scene) && $scene == 'password_change'}确认修改密码{else}验证您的注册邮箱{/if}{/if}
</h1>
<p style="margin:0 0 25px; color:#53647a; font-size:14px; line-height:24px;">
<p class="email-copy" style="margin:0 0 24px; color:#53647a; font-size:15px; line-height:25px;">
{if $language == 'true'}{if !empty($scene) && $scene == 'login'}Enter the code below to complete the security check for your sign-in.{elseif !empty($scene) && $scene == 'password_change'}Enter the code below on the account page to confirm your password change.{else}Enter the code below on the registration page to finish creating your account.{/if}{else}{if !empty($scene) && $scene == 'login'}请在登录页面输入下方验证码,完成本次安全验证。{elseif !empty($scene) && $scene == 'password_change'}请在账户设置页面输入下方验证码,确认修改密码。{else}请在注册页面输入下方验证码,完成邮箱验证并继续创建账户。{/if}{/if}
</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 22px;">
<tr><td align="center" bgcolor="#eef9fa" style="padding:23px 16px; background-color:#eef9fa; border:1px solid #ccebed; border-radius:11px; text-align:center;">
<tr><td class="email-panel" align="center" bgcolor="#eaf8f8" style="padding:22px 16px; background-color:#eaf8f8; border-radius:12px; text-align:center;">
<span style="display:block; margin:0 0 7px; color:#708396; font-size:11px; line-height:16px; font-weight:700;">{if $language == 'true'}VERIFICATION CODE{else}邮箱验证码{/if}</span>
<strong style="display:block; color:#0f8f9a; font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; font-size:32px; line-height:40px; font-weight:800; letter-spacing:7px;">{$code|escape:"html"}</strong>
<strong class="email-code" style="display:block; color:#0f8f9a; font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; font-size:32px; line-height:40px; font-weight:800; letter-spacing:7px;">{$code|escape:"html"}</strong>
</td></tr>
</table>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px;">
<tr><td bgcolor="#f7f9fb" style="padding:13px 15px; background-color:#f7f9fb; border-left:3px solid #159da9; border-radius:7px; color:#53647a; font-size:12px; line-height:20px;">
<tr><td class="email-panel" bgcolor="#f2f6f9" style="padding:14px 16px; background-color:#f2f6f9; border-radius:9px; color:#53647a; font-size:12px; line-height:20px;">
{if $language == 'true'}This code is valid until <strong style="color:#34445a;">{$expire|escape:"html"}</strong>.{else}本验证码将在 <strong style="color:#34445a;">{$expire|escape:"html"}</strong> 失效。{/if}
</td></tr>
</table>

@ -5,18 +5,18 @@
{block name='content'}
<p style="margin:0 0 10px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.8px;">SERVICE RENEWAL</p>
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:30px; line-height:39px; font-weight:800; letter-spacing:-.6px;">续费账单已生成</h1>
<p style="margin:0 0 25px; color:#53647a; font-size:14px; line-height:24px;">您的云服务器 <strong style="color:#34445a;">{$instance_name|escape:"html"}</strong> 即将到期。为避免网络服务中断,请在到期前完成账单支付。</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 23px; color:#53647a; font-size:15px; line-height:25px;">您的云服务器 <strong style="color:#34445a;">{$instance_name|escape:"html"}</strong> 即将到期。为避免网络服务中断,请在到期前完成账单支付。</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f7f9fb" style="width:100%; margin:0 0 22px; background-color:#f7f9fb; border:1px solid #e7ecf2; border-radius:10px;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f2f6f9" style="width:100%; margin:0 0 22px; background-color:#f2f6f9; border-radius:12px;">
<tr>
<td class="email-fact-cell" width="33.33%" valign="top" style="width:33.33%; padding:17px 10px 17px 17px; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">账单编号</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px;">#{$invoice_id|escape:"html"}</strong></td>
<td class="email-fact-cell" width="33.33%" valign="top" style="width:33.33%; padding:17px 10px; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">应付金额</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px;">&#36;{$amount|escape:"html"}</strong></td>
<td class="email-fact-cell" width="33.33%" valign="top" style="width:33.33%; padding:17px 17px 17px 10px; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">实例到期时间</span><strong style="display:block; color:#2b4055; font-size:13px; line-height:20px;">{$due_at|escape:"html"}</strong></td>
<td class="email-fact-cell email-fact-first" width="33.33%" valign="top" style="width:33.33%; padding:15px 14px 15px 16px; vertical-align:top;"><span style="display:block; margin-bottom:4px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">账单编号</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px;">#{$invoice_id|escape:"html"}</strong></td>
<td class="email-fact-cell" width="33.33%" valign="top" style="width:33.33%; padding:15px 14px; vertical-align:top;"><span style="display:block; margin-bottom:4px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">应付金额</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px;">&#36;{$amount|escape:"html"}</strong></td>
<td class="email-fact-cell" width="33.33%" valign="top" style="width:33.33%; padding:15px 16px 15px 14px; vertical-align:top;"><span style="display:block; margin-bottom:4px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">实例到期时间</span><strong style="display:block; color:#2b4055; font-size:13px; line-height:20px;">{$due_at|escape:"html"}</strong></td>
</tr>
</table>
<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; box-shadow:0 8px 17px rgba(15,158,170,.16);"><a class="email-button-link" href="{$invoice_url|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>
<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; box-shadow:0 8px 17px rgba(15,158,170,.16); mso-padding-alt:13px 22px;"><a class="email-button-link" href="{$invoice_url|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>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#fff0f2" style="padding:14px 15px; background-color:#fff0f2; border:1px solid #f0d3d8; border-radius:8px; color:#93404a; font-size:12px; line-height:20px;"><strong style="display:block; margin-bottom:3px; color:#c43e4b;">重要提醒</strong>实例到期后将立即停用网络,续费成功后会自动恢复。到期满 3 天仍未支付,实例及其系统盘将被永久删除,数据无法恢复。</td></tr></table>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td class="email-panel" bgcolor="#fff1f3" style="padding:15px 16px; background-color:#fff1f3; border-radius:10px; color:#93404a; font-size:12px; line-height:20px;"><strong style="display:block; margin-bottom:3px; color:#c43e4b;">重要提醒</strong>实例到期后将立即停用网络,续费成功后会自动恢复。到期满 3 天仍未支付,实例及其系统盘将被永久删除,数据无法恢复。</td></tr></table>
{/block}

@ -5,27 +5,27 @@
{block name='content'}
<p style="margin:0 0 10px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.8px;">INSTANCE READY</p>
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:30px; line-height:39px; font-weight:800; letter-spacing:-.6px;">实例已开通</h1>
<p style="margin:0 0 24px; color:#53647a; font-size:14px; line-height:24px;">您的云服务器 <strong style="color:#34445a;">{$instance_name|escape:"html"}</strong> 已创建完成,现在可以进入控制台查看状态并进行管理。</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 23px; color:#53647a; font-size:15px; line-height:25px;">您的云服务器 <strong style="color:#34445a;">{$instance_name|escape:"html"}</strong> 已创建完成,现在可以进入控制台查看状态并进行管理。</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 22px;"><tr><td bgcolor="#e9f8f1" style="padding:13px 15px; background-color:#e9f8f1; border:1px solid #cfeadf; border-radius:8px; color:#208764; font-size:13px; line-height:20px; font-weight:800;">●&nbsp;&nbsp;实例状态:开通成功</td></tr></table>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 22px;"><tr><td class="email-panel" bgcolor="#eaf8f2" style="padding:14px 16px; background-color:#eaf8f2; border-radius:10px; color:#208764; font-size:13px; line-height:20px; font-weight:800;">●&nbsp;&nbsp;实例状态:开通成功</td></tr></table>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f7f9fb" style="width:100%; margin:0 0 22px; background-color:#f7f9fb; border:1px solid #e7ecf2; border-radius:10px;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f2f6f9" style="width:100%; margin:0 0 22px; background-color:#f2f6f9; border-radius:12px;">
<tr>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:17px 12px 12px 17px; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">实例名称</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$instance_name|escape:"html"}</strong><small style="display:block; margin-top:4px; color:#91a0af; font-size:10px; line-height:16px;">实例 #{$instance_id|escape:"html"}</small></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:17px 17px 12px 12px; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">地区</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$region|default:'—'|escape:"html"}</strong></td>
<td class="email-fact-cell email-fact-first" width="50%" valign="top" style="width:50%; padding:15px 14px 15px 16px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">实例名称</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$instance_name|escape:"html"}</strong><small style="display:block; margin-top:3px; color:#91a0af; font-size:10px; line-height:16px;">实例 #{$instance_id|escape:"html"}</small></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:15px 16px 15px 14px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">地区</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$region|default:'—'|escape:"html"}</strong></td>
</tr>
<tr>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:12px 12px 12px 17px; border-top:1px solid #e7ecf2; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">公网 IP</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$public_ip|default:'—'|escape:"html"}</strong></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:12px 17px 12px 12px; border-top:1px solid #e7ecf2; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">操作系统</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$os_name|default:'—'|escape:"html"}</strong></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:15px 14px 15px 16px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">公网 IP</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$public_ip|default:'—'|escape:"html"}</strong></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:15px 16px 15px 14px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">操作系统</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$os_name|default:'—'|escape:"html"}</strong></td>
</tr>
<tr>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:12px 12px 12px 17px; border-top:1px solid #e7ecf2; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">SSH 登录用户</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$login_name|default:'root'|escape:"html"}</strong></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:12px 17px 12px 12px; border-top:1px solid #e7ecf2; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">开通时间</span><strong style="display:block; color:#2b4055; font-size:13px; line-height:20px; word-break:break-word;">{$created_at|default:'—'|escape:"html"}</strong></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:15px 14px 15px 16px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">SSH 登录用户</span><strong style="display:block; color:#2b4055; font-size:14px; line-height:20px; word-break:break-word;">{$login_name|default:'root'|escape:"html"}</strong></td>
<td class="email-fact-cell" width="50%" valign="top" style="width:50%; padding:15px 16px 15px 14px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">开通时间</span><strong style="display:block; color:#2b4055; font-size:13px; line-height:20px; word-break:break-word;">{$created_at|default:'—'|escape:"html"}</strong></td>
</tr>
<tr><td class="email-fact-cell" width="100%" colspan="2" valign="top" style="width:100%; padding:12px 17px 17px; border-top:1px solid #e7ecf2; vertical-align:top;"><span style="display:block; margin-bottom:6px; color:#91a0af; font-size:10px; line-height:15px; font-weight:700;">服务到期时间</span><strong style="display:block; color:#2b4055; font-size:13px; line-height:20px; word-break:break-word;">{$expires_at|default:'—'|escape:"html"}</strong></td></tr>
<tr><td class="email-fact-cell" width="100%" colspan="2" valign="top" style="width:100%; padding:15px 16px; vertical-align:top;"><span style="display:block; margin-bottom:5px; color:#8494a6; font-size:10px; line-height:15px; font-weight:700;">服务到期时间</span><strong style="display:block; color:#2b4055; font-size:13px; line-height:20px; word-break:break-word;">{$expires_at|default:'—'|escape:"html"}</strong></td></tr>
</table>
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px;"><tr><td class="email-button-cell" align="center" bgcolor="#0f9eaa" style="border-radius:9px; background-color:#0f9eaa; box-shadow:0 8px 17px rgba(15,158,170,.16);"><a class="email-button-link" href="{$instance_url|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>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px;"><tr><td class="email-button-cell" align="center" bgcolor="#0f9eaa" style="border-radius:9px; background-color:#0f9eaa; box-shadow:0 8px 17px rgba(15,158,170,.16); mso-padding-alt:13px 22px;"><a class="email-button-link" href="{$instance_url|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:21px;">出于安全考虑,本邮件不会展示账户密码、私钥或其他登录凭据。请前往实例详情页面查看面板保存的信息。</p>
{/block}

@ -3,68 +3,96 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
<meta name="x-apple-disable-message-reformatting">
<meta name="color-scheme" content="light only">
<meta name="supported-color-schemes" content="light">
<title>{block name='email_title'}{$config["appName"]|escape:"html"}{/block}</title>
<style type="text/css">
:root { color-scheme: light only; supported-color-schemes: light; }
html, body { margin: 0 !important; padding: 0 !important; }
body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
table { border-collapse: collapse !important; }
table { border-spacing: 0; border-collapse: collapse !important; }
td { mso-line-height-rule: exactly; }
img { -ms-interpolation-mode: bicubic; border: 0; outline: none; text-decoration: none; }
a { color: #0f8f9a; }
a[x-apple-data-detectors], u + .email-body a, #MessageViewBody a {
color: inherit !important;
font: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
@media only screen and (max-width: 620px) {
.email-outer { padding: 0 !important; }
.email-shell { width: 100% !important; max-width: 100% !important; }
.email-header { padding: 24px 20px !important; }
.email-content { padding: 30px 22px 26px !important; }
.email-footer { padding: 22px 20px 28px !important; }
.email-title { font-size: 26px !important; line-height: 34px !important; }
.email-fact-cell { display: block !important; width: 100% !important; padding: 0 0 14px !important; }
.email-button-cell, .email-button-link { display: block !important; width: 100% !important; }
.email-button-link { box-sizing: border-box !important; text-align: center !important; }
.email-outer { padding: 12px 10px 28px !important; }
.email-shell { width: 100% !important; max-width: 100% !important; border-radius: 12px !important; }
.email-header { padding: 19px 20px !important; }
.email-logo-cell { width: 43px !important; }
.email-logo { width: 36px !important; height: 36px !important; font-size: 12px !important; line-height: 36px !important; border-radius: 9px !important; }
.email-brand { font-size: 16px !important; line-height: 21px !important; }
.email-content { padding: 27px 20px 25px !important; }
.email-footer { padding: 20px 20px 36px !important; }
.email-title { font-size: 24px !important; line-height: 31px !important; letter-spacing: -0.35px !important; }
.email-copy { font-size: 14px !important; line-height: 23px !important; }
.email-fact-cell {
box-sizing: border-box !important;
display: block !important;
width: 100% !important;
padding: 13px 16px !important;
border-top: 0 !important;
border-left: 0 !important;
}
.email-button-table, .email-button-table tbody, .email-button-table tr,
.email-button-cell, .email-button-link {
box-sizing: border-box !important;
display: block !important;
width: 100% !important;
}
.email-button-link { text-align: center !important; }
.email-code { font-size: 28px !important; line-height: 36px !important; letter-spacing: 5px !important; }
.email-panel { padding: 15px 16px !important; }
}
</style>
</head>
<body style="width:100% !important; min-width:100%; margin:0 !important; padding:0 !important; background-color:#f4f7fb; color:#15243a; font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',Arial,sans-serif; -webkit-font-smoothing:antialiased;" bgcolor="#f4f7fb">
<body class="email-body" style="width:100% !important; margin:0 !important; padding:0 !important; background-color:#edf3f8; color:#15243a; font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',Arial,sans-serif; -webkit-font-smoothing:antialiased;" bgcolor="#edf3f8">
<div style="display:none !important; visibility:hidden; opacity:0; overflow:hidden; mso-hide:all; width:0; height:0; max-height:0; max-width:0; color:transparent; line-height:1px; font-size:1px;">
{block name='preheader'}{$config["appName"]|escape:"html"}{/block}
</div>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f7fb" style="width:100%; margin:0; padding:0; background-color:#f4f7fb;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#edf3f8" style="width:100%; margin:0; padding:0; background-color:#edf3f8;">
<tr>
<td class="email-outer" align="center" style="padding:32px 16px;">
<td class="email-outer" align="center" style="padding:38px 16px 46px;">
<!--[if mso]><table role="presentation" width="600" cellpadding="0" cellspacing="0" border="0"><tr><td><![endif]-->
<table class="email-shell" role="presentation" width="600" cellpadding="0" cellspacing="0" border="0" style="width:100%; max-width:600px; overflow:hidden; background-color:#ffffff; border:1px solid #e7ecf2; border-radius:13px; box-shadow:0 10px 30px rgba(19,42,65,.04);" bgcolor="#ffffff">
<table class="email-shell" role="presentation" width="600" cellpadding="0" cellspacing="0" border="0" style="width:100%; max-width:600px; overflow:hidden; background-color:#ffffff; border-radius:18px; box-shadow:0 16px 42px rgba(22,42,66,.09);" bgcolor="#ffffff">
<tr>
<td class="email-header" bgcolor="#101d2c" style="padding:28px 32px; background-color:#101d2c;">
<td class="email-header" bgcolor="#102235" style="padding:24px 30px; background-color:#102235;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="46" valign="middle" style="width:46px; vertical-align:middle;">
<table role="presentation" width="38" cellpadding="0" cellspacing="0" border="0">
<tr><td align="center" valign="middle" width="38" height="38" bgcolor="#2ac6ca" style="width:38px; height:38px; border-radius:10px; background-color:#2ac6ca; color:#0c2a3f; font-size:13px; line-height:38px; font-weight:900; letter-spacing:-.5px; text-align:center;">VC</td></tr>
<td class="email-logo-cell" width="49" valign="middle" style="width:49px; vertical-align:middle;">
<table role="presentation" width="40" cellpadding="0" cellspacing="0" border="0">
<tr><td class="email-logo" align="center" valign="middle" width="40" height="40" bgcolor="#2ac6ca" style="width:40px; height:40px; border-radius:10px; background-color:#2ac6ca; color:#0c2a3f; font-size:13px; line-height:40px; font-weight:900; letter-spacing:-.5px; text-align:center;">VC</td></tr>
</table>
</td>
<td valign="middle" style="vertical-align:middle;">
<a href="{$config["baseUrl"]|escape:"html"}" style="display:block; color:#ffffff; font-size:18px; line-height:24px; font-weight:800; text-decoration:none;">{$config["appName"]|escape:"html"}</a>
<span style="display:block; margin-top:2px; color:#668197; font-size:9px; line-height:14px; font-weight:700; letter-spacing:2px;">CONTROL PANEL</span>
<a class="email-brand" href="{$config["baseUrl"]|escape:"html"}" style="display:block; color:#ffffff; font-size:18px; line-height:23px; font-weight:800; text-decoration:none;">{$config["appName"]|escape:"html"}</a>
<span style="display:block; margin-top:2px; color:#7790a5; font-size:9px; line-height:13px; font-weight:700; letter-spacing:1.8px;">CONTROL PANEL</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content" bgcolor="#ffffff" style="padding:38px 38px 34px; background-color:#ffffff; color:#15243a;">
<td class="email-content" bgcolor="#ffffff" style="padding:36px 36px 32px; background-color:#ffffff; color:#15243a;">
{block name='content'}{/block}
</td>
</tr>
<tr>
<td class="email-footer" bgcolor="#fbfcfe" style="padding:24px 32px 30px; background-color:#fbfcfe; border-top:1px solid #edf1f5; text-align:center;">
<p style="margin:0 0 7px; color:#8390a2; font-size:12px; line-height:20px;">{if !empty($language) && $language == 'true'}This is an automated message. Please do not reply.{else}此邮件由系统自动发送,请勿直接回复。{/if}</p>
<p style="margin:0; color:#a2afbd; font-size:11px; line-height:18px;">
<td class="email-footer" bgcolor="#f5f8fb" style="padding:22px 32px 30px; background-color:#f5f8fb; text-align:center;">
<p style="margin:0 0 6px; color:#7f8da0; font-size:12px; line-height:19px;">{if !empty($language) && $language == 'true'}This is an automated message. Please do not reply.{else}此邮件由系统自动发送,请勿直接回复。{/if}</p>
<p style="margin:0 0 8px; color:#91a0b1; font-size:11px; line-height:18px;">
<a href="{$config["baseUrl"]|escape:"html"}" style="color:#159da9; font-weight:700; text-decoration:none;">{if !empty($language) && $language == 'true'}Visit{else}访问{/if} {$config["appName"]|escape:"html"}</a>
<span style="padding:0 6px; color:#d0d8e0;">·</span>{if !empty($language) && $language == 'true'}Cloud control panel{else}云资源控制台{/if}
<span style="padding:0 6px; color:#c5ced8;">·</span>{if !empty($language) && $language == 'true'}Cloud control panel{else}云资源控制台{/if}
</p>
<p style="margin:0; color:#a5b0bd; font-size:10px; line-height:17px;">&copy; 2026 {$config["appName"]|escape:"html"}. All rights reserved.</p>
</td>
</tr>
</table>

@ -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,190 +1,17 @@
<!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;">SERVICE NOTICE</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>
{if !empty($user)}<p class="email-copy" style="margin:0 0 20px; color:#53647a; font-size:15px; line-height:25px;">您好,{$user->user_name|default:'用户'|escape:"html"}:</p>{/if}
<p class="email-copy" style="margin:0 0 20px; 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 22px;">
<tr><td class="email-panel" bgcolor="#eaf8f8" style="padding:17px 18px; background-color:#eaf8f8; border-radius:11px; color:#235264; font-size:13px; line-height:22px; word-break:break-all;"><span style="display:block; margin-bottom:4px; color:#6b8490; font-size:10px; line-height:15px; font-weight:800; letter-spacing:1px;">CURRENT SITE ADDRESS</span><a href="{$config["baseUrl"]|escape:"html"}" style="color:#0f8f9a; font-weight:800; text-decoration:none; word-break:break-all;">{$config["baseUrl"]|escape:"html"}</a></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, {$user->user_name}<br
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"/>用户: {$user->email}
</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">尊敬的用户您好:<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">
<p>最新国内地址:sockboom.store</p>
</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>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0;"><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>
{/block}

@ -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'}{$title|default:'财务通知'|escape:"html"} | {$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;">BILLING NOTICE</p>
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:28px; line-height:36px; font-weight:800; letter-spacing:-.5px;">{$title|default:'财务通知'|escape:"html"}</h1>
<p class="email-copy" style="margin:0 0 20px; color:#53647a; font-size:15px; line-height:25px;">您好,{$user->user_name|default:'用户'|escape:"html"}:</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 22px;">
<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; word-break:break-word;">{$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">{$title}</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, {$user->user_name}<br
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"/>邮箱: {$user->email}
</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>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0;"><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>
{/block}

@ -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'}您有一条来自 {$config["appName"]|escape:"html"} 的账户通知。{/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;">ACCOUNT NOTICE</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;">您好,{$user->user_name|default:'用户'|escape:"html"}:</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 22px;">
<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; word-break:break-word;">{$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, {$user->user_name}<br
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"/>邮箱: {$user->email}
</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>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0;"><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>
{/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,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:#c5505c; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.7px;">ACTION REQUIRED</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;">您好,{$user->user_name|default:'用户'|escape:"html"}:</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 22px;">
<tr><td class="email-panel" bgcolor="#fff1f3" style="padding:17px 18px; background-color:#fff1f3; border-radius:11px; color:#753c43; font-size:14px; line-height:23px; word-break:break-word;">{$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, {$user->user_name}<br
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"/>邮箱: {$user->email}
</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>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0;"><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>
{/block}

@ -5,17 +5,17 @@
{block name='content'}
<p style="margin:0 0 10px; color:#159da9; font-size:11px; line-height:16px; font-weight:800; letter-spacing:1.8px; text-transform:uppercase;">ACCOUNT SECURITY</p>
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:30px; line-height:39px; font-weight:800; letter-spacing:-.6px;">{if $language == 'true'}Reset your password{else}重置账户密码{/if}</h1>
<p style="margin:0 0 24px; color:#53647a; font-size:14px; line-height:24px;">{if $language == 'true'}We received a request to reset the password for your {$config["appName"]|escape:"html"} account. Use the button below to continue.{else}我们收到了您为 {$config["appName"]|escape:"html"} 账户重置密码的请求,请点击下方按钮继续。{/if}</p>
<h1 class="email-title" style="margin:0 0 14px; color:#15243a; font-size:28px; line-height:36px; font-weight:800; letter-spacing:-.5px;">{if $language == 'true'}Reset your password{else}重置账户密码{/if}</h1>
<p class="email-copy" style="margin:0 0 24px; color:#53647a; font-size:15px; line-height:25px;">{if $language == 'true'}We received a request to reset the password for your {$config["appName"]|escape:"html"} account. Use the button below to continue.{else}我们收到了您为 {$config["appName"]|escape:"html"} 账户重置密码的请求,请点击下方按钮继续。{/if}</p>
<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; box-shadow:0 8px 17px rgba(15,158,170,.16);"><a class="email-button-link" href="{$resetUrl|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;">{if $language == 'true'}Reset password{else}前往重置密码{/if}</a></td></tr></table>
<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; box-shadow:0 8px 17px rgba(15,158,170,.16); mso-padding-alt:13px 22px;"><a class="email-button-link" href="{$resetUrl|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;">{if $language == 'true'}Reset password{else}前往重置密码{/if}</a></td></tr></table>
{if !empty($expire)}
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px;"><tr><td bgcolor="#f7f9fb" style="padding:13px 15px; background-color:#f7f9fb; border-left:3px solid #159da9; border-radius:7px; color:#53647a; font-size:12px; line-height:20px;">{if $language == 'true'}This reset link is valid until <strong style="color:#34445a;">{$expire|escape:"html"}</strong>.{else}此重置链接将在 <strong style="color:#34445a;">{$expire|escape:"html"}</strong> 失效。{/if}</td></tr></table>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 20px;"><tr><td class="email-panel" bgcolor="#f2f6f9" style="padding:14px 16px; background-color:#f2f6f9; border-radius:9px; color:#53647a; font-size:12px; line-height:20px;">{if $language == 'true'}This reset link is valid until <strong style="color:#34445a;">{$expire|escape:"html"}</strong>.{else}此重置链接将在 <strong style="color:#34445a;">{$expire|escape:"html"}</strong> 失效。{/if}</td></tr></table>
{/if}
<p style="margin:0 0 8px; color:#8390a2; font-size:12px; line-height:20px;">{if $language == 'true'}If the button does not work, copy and paste this address into your browser:{else}如果按钮无法打开,请复制以下地址并粘贴到浏览器:{/if}</p>
<p style="margin:0 0 22px; padding:11px 13px; background-color:#f7f9fb; border:1px solid #e7ecf2; border-radius:7px; color:#0f8f9a; font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; font-size:11px; line-height:18px; word-break:break-all; overflow-wrap:anywhere;"><a href="{$resetUrl|escape:"html"}" style="color:#0f8f9a; text-decoration:none; word-break:break-all; overflow-wrap:anywhere;">{$resetUrl|escape:"html"}</a></p>
<p style="margin:0 0 22px; padding:12px 14px; background-color:#f2f6f9; border-radius:9px; color:#0f8f9a; font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; font-size:11px; line-height:18px; word-break:break-all; overflow-wrap:anywhere;"><a href="{$resetUrl|escape:"html"}" style="color:#0f8f9a; text-decoration:none; word-break:break-all; overflow-wrap:anywhere;">{$resetUrl|escape:"html"}</a></p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#fff7e8" style="padding:14px 15px; background-color:#fff7e8; border:1px solid #f2dfbd; border-radius:8px; color:#8d611f; font-size:12px; line-height:20px;"><strong style="display:block; margin-bottom:3px; color:#a66a19;">{if $language == 'true'}Security notice{else}安全提示{/if}</strong>{if $language == 'true'}If you did not request a password reset, ignore this email. Do not forward this message or share the reset link with anyone.{else}如果并非您本人申请重置密码,请忽略此邮件。请勿转发本邮件或向任何人泄露重置链接。{/if}</td></tr></table>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><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;">{if $language == 'true'}Security notice{else}安全提示{/if}</strong>{if $language == 'true'}If you did not request a password reset, ignore this email. Do not forward this message or share the reset link with anyone.{else}如果并非您本人申请重置密码,请忽略此邮件。请勿转发本邮件或向任何人泄露重置链接。{/if}</td></tr></table>
{/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}

@ -3,8 +3,8 @@
{block name='preheader'}你的工单已提交,管理员会尽快处理。{/block}
{block name='content'}
<p style="margin:0 0 8px;color:#8390a2;font-size:12px;letter-spacing:1.8px;font-weight:800;text-transform:uppercase;">TICKET CREATED</p>
<h1 class="email-title" style="margin:0 0 14px;color:#15243a;font-size:30px;line-height:38px;font-weight:800;">工单已提交</h1>
<p style="margin:0 0 20px;color:#52647b;font-size:15px;line-height:25px;">您好,{$user->user_name|default:'用户'|escape:"html"},你的工单已经创建成功。管理员回复后,我们会再次通过邮件提醒你。</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 24px;background:#f6f9fc;border:1px solid #e7edf3;border-radius:12px;"><tr><td style="padding:16px 18px;"><p style="margin:0 0 5px;color:#8a98aa;font-size:12px;">工单 #{$ticket->id}</p><p style="margin:0;color:#15243a;font-size:17px;line-height:24px;font-weight:800;">{$ticket->title|escape:"html"}</p></td></tr></table>
<a href="{$ticket_url|escape:'html'}" class="email-button-link" style="display:inline-block;padding:12px 20px;border-radius:9px;background:#159da9;color:#ffffff;font-size:14px;line-height:20px;font-weight:800;text-decoration:none;">查看工单</a>
<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:#52647b;font-size:15px;line-height:25px;">您好,{$user->user_name|default:'用户'|escape:"html"},你的工单已经创建成功。管理员回复后,我们会再次通过邮件提醒你。</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f2f6f9" style="margin:0 0 24px;background-color:#f2f6f9;border-radius:12px;"><tr><td class="email-panel" style="padding:17px 18px;"><p style="margin:0 0 5px;color:#8a98aa;font-size:12px;">工单 #{$ticket->id|escape:"html"}</p><p style="margin:0;color:#15243a;font-size:17px;line-height:24px;font-weight:800;word-break:break-word;">{$ticket->title|escape:"html"}</p></td></tr></table>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0;"><tr><td class="email-button-cell" align="center" bgcolor="#0f9eaa" style="border-radius:9px;background-color:#0f9eaa;mso-padding-alt:13px 22px;"><a href="{$ticket_url|escape:'html'}" class="email-button-link" style="display:inline-block;padding:13px 22px;border-radius:9px;color:#ffffff;font-size:14px;line-height:20px;font-weight:800;text-decoration:none;">查看工单</a></td></tr></table>
{/block}

@ -3,8 +3,8 @@
{block name='preheader'}管理员已回复你的工单。{/block}
{block name='content'}
<p style="margin:0 0 8px;color:#8390a2;font-size:12px;letter-spacing:1.8px;font-weight:800;text-transform:uppercase;">TICKET REPLY</p>
<h1 class="email-title" style="margin:0 0 14px;color:#15243a;font-size:30px;line-height:38px;font-weight:800;">工单收到回复</h1>
<p style="margin:0 0 20px;color:#52647b;font-size:15px;line-height:25px;">您好,{$user->user_name|default:'用户'|escape:"html"},管理员已经回复你的工单,请登录控制台查看完整内容。</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 24px;background:#f6f9fc;border:1px solid #e7edf3;border-radius:12px;"><tr><td style="padding:16px 18px;"><p style="margin:0 0 5px;color:#8a98aa;font-size:12px;">工单 #{$ticket->id}</p><p style="margin:0;color:#15243a;font-size:17px;line-height:24px;font-weight:800;">{$ticket->title|escape:"html"}</p></td></tr></table>
<a href="{$ticket_url|escape:'html'}" class="email-button-link" style="display:inline-block;padding:12px 20px;border-radius:9px;background:#159da9;color:#ffffff;font-size:14px;line-height:20px;font-weight:800;text-decoration:none;">查看回复</a>
<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:#52647b;font-size:15px;line-height:25px;">您好,{$user->user_name|default:'用户'|escape:"html"},管理员已经回复你的工单,请登录控制台查看完整内容。</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f2f6f9" style="margin:0 0 24px;background-color:#f2f6f9;border-radius:12px;"><tr><td class="email-panel" style="padding:17px 18px;"><p style="margin:0 0 5px;color:#8a98aa;font-size:12px;">工单 #{$ticket->id|escape:"html"}</p><p style="margin:0;color:#15243a;font-size:17px;line-height:24px;font-weight:800;word-break:break-word;">{$ticket->title|escape:"html"}</p></td></tr></table>
<table class="email-button-table" role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0;"><tr><td class="email-button-cell" align="center" bgcolor="#0f9eaa" style="border-radius:9px;background-color:#0f9eaa;mso-padding-alt:13px 22px;"><a href="{$ticket_url|escape:'html'}" class="email-button-link" style="display:inline-block;padding:13px 22px;border-radius:9px;color:#ffffff;font-size:14px;line-height:20px;font-weight:800;text-decoration:none;">查看回复</a></td></tr></table>
{/block}

@ -16,6 +16,20 @@ $verify = file_get_contents($root . '/resources/email/auth/verify.tpl');
$reset = file_get_contents($root . '/resources/email/password/reset.tpl');
$renewal = file_get_contents($root . '/resources/email/cloud/invoice.tpl');
$provisioned = file_get_contents($root . '/resources/email/cloud/provision-success.tpl');
$contentTemplates = [];
$templateFiles = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(
$root . '/resources/email', FilesystemIterator::SKIP_DOTS
));
foreach ($templateFiles as $templateFile) {
if (!$templateFile->isFile()
|| $templateFile->getExtension() !== 'tpl'
|| $templateFile->getFilename() === 'layout.tpl') {
continue;
}
$contentTemplates[$templateFile->getPathname()] = file_get_contents(
$templateFile->getPathname()
);
}
$assert(str_contains($auth, '"scene" => "registration"')
&& str_contains($auth, '"scene" => "login"'),
@ -24,11 +38,13 @@ $assert(str_contains($password, '"expire" => date(')
&& str_contains($password, '$expiresAt = $now + 3600 * 24;'),
'Password reset email does not receive its real expiry timestamp.');
foreach ([$verify, $reset, $renewal, $provisioned] as $template) {
foreach ($contentTemplates as $path => $template) {
$assert(str_contains($template, "{extends file='layout.tpl'}"),
'A customer-facing system email does not use the shared panel theme.');
'An email template does not use the shared panel theme: ' . $path);
}
foreach (['#f4f7fb', '#101d2c', '#159da9', '#15243a', '#e7ecf2'] as $color) {
$assert(count($contentTemplates) === 13,
'Expected every one of the 13 content email templates to be covered.');
foreach (['#edf3f8', '#102235', '#159da9', '#15243a', '#f5f8fb'] as $color) {
$assert(str_contains(strtolower($layout), $color),
'Shared email layout is missing a user-panel theme color: ' . $color);
}
@ -36,6 +52,19 @@ $assert(str_contains($layout, 'role="presentation"')
&& str_contains($layout, 'CONTROL PANEL')
&& str_contains($layout, '{$config["appName"]|escape:"html"}'),
'Shared email layout lacks its compatible branded table shell.');
$assert(str_contains($layout, '@media only screen and (max-width: 620px)')
&& str_contains($layout,
'.email-outer { padding: 12px 10px 28px !important; }')
&& str_contains($layout, '.email-fact-cell')
&& str_contains($layout, '.email-button-table'),
'Shared email layout lost its mobile responsive rules.');
$assert(str_contains($layout,
'&copy; 2026 {$config["appName"]|escape:"html"}. All rights reserved.')
&& strrpos($layout, '&copy; 2026') > strrpos($layout, '云资源控制台'),
'Shared email footer is missing the final dynamic copyright line.');
$assert(preg_match('/border(?:-(?:top|right|bottom|left))?\s*:\s*[1-9]/i',
$layout . implode("\n", $contentTemplates)) !== 1,
'Email UI contains a visible divider or panel border.');
$assert(str_contains($verify, '{$code|escape:"html"}')
&& str_contains($verify, '{$expire|escape:"html"}')
@ -77,4 +106,4 @@ $assert(str_contains($invoices, "CloudMailOutbox::where('invoice_id', \$invoice-
&& str_contains($invoices, "['renewal_due', 'provision_succeeded']"),
'Cloud notification queue is not idempotent per invoice and kind.');
echo "Panel-themed registration, reset, invoice and provisioning email contracts passed.\n";
echo "All panel-themed email template and notification contracts passed.\n";

@ -65,12 +65,60 @@ try {
'instance_url' => 'https://cloud.example.test/user/cloud/instances/43?x=1&y=2',
]);
foreach ([$registration, $login, $reset, $renewal, $provisioned] as $html) {
$user = (object) [
'user_name' => '云端 <用户>',
'email' => 'user@example.test',
];
$ticket = (object) [
'id' => 17,
'title' => '网络 <异常> & 排查',
];
$ticketCreated = $render('ticket/created.tpl', [
'user' => $user,
'ticket' => $ticket,
'ticket_url' => 'https://cloud.example.test/user/tickets/17?x=1&y=2',
]);
$ticketReplied = $render('ticket/replied.tpl', [
'user' => $user,
'ticket' => $ticket,
'ticket_url' => 'https://cloud.example.test/user/tickets/17?x=1&y=2',
]);
$backup = $render('news/backup.tpl', [
'text' => '数据库备份已完成。',
]);
$monitor = $render('news/monitor.tpl', [
'user' => $user,
'text' => '<script>alert("notice")</script>\n第二行',
]);
$warning = $render('news/warn.tpl', [
'user' => $user,
'text' => '工单 #17 有新的消息。',
]);
$finance = $render('news/finance.tpl', [
'user' => $user,
'title' => '余额 <提醒>',
'text' => '您的账户余额发生变化。',
]);
$addressNotice = $render('news/daily-traffic-report.tpl', [
'user' => $user,
]);
$newYear = $render('news/nian.tpl', []);
$testMail = $render('test.tpl', [
'time' => '2026-10-23 12:00:00',
]);
$renderedEmails = [$registration, $login, $reset, $renewal,
$provisioned, $ticketCreated, $ticketReplied, $backup, $monitor,
$warning, $finance, $addressNotice, $newYear, $testMail];
foreach ($renderedEmails as $html) {
$assert(str_contains(strtolower($html), '<!doctype html>')
&& str_contains($html, 'CONTROL PANEL')
&& str_contains(strtolower($html), '#101d2c')
&& !str_contains($html, '<script>'),
'A rendered system email lost its shared theme or emitted raw HTML.');
&& str_contains(strtolower($html), '#102235')
&& str_contains($html,
'&copy; 2026 Virt &lt;Cloud&gt;. All rights reserved.')
&& str_contains($html,
'@media only screen and (max-width: 620px)'),
'A rendered email lost its shared theme, responsive CSS or footer.');
}
$assert(str_contains($registration, '验证您的注册邮箱')
&& str_contains($registration, '12&lt;345')
@ -89,6 +137,19 @@ try {
&& str_contains($provisioned, '203.0.113.43')
&& !str_contains($provisioned, 'not-for-email'),
'Provision-success email did not render safe instance details.');
$assert(str_contains($ticketCreated, '工单已提交')
&& str_contains($ticketReplied, '工单收到回复')
&& str_contains($ticketCreated, '网络 &lt;异常&gt; &amp; 排查'),
'Ticket emails did not render their escaped shared content.');
$assert(str_contains($backup, '数据库备份已完成')
&& str_contains($monitor, '&lt;script&gt;alert(&quot;notice&quot;)&lt;/script&gt;')
&& !str_contains($monitor, '<script>')
&& str_contains($warning, '重要提醒')
&& str_contains($finance, '余额 &lt;提醒&gt;')
&& str_contains($addressNotice, 'https://cloud.example.test')
&& str_contains($newYear, '新年专享优惠')
&& str_contains($testMail, '邮件服务连接正常'),
'A legacy or test email did not migrate safely to the shared layout.');
} finally {
$generatedFiles = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($directory, FilesystemIterator::SKIP_DOTS),
@ -104,4 +165,4 @@ try {
rmdir($directory);
}
echo "Registration, reset, renewal and provisioning emails rendered safely.\n";
echo "All email templates rendered safely with the responsive shared layout.\n";

Loading…
Cancel
Save