refactor: 优化邮箱模板

This commit is contained in:
Ying
2023-08-02 18:16:44 +08:00
parent 918a5253b2
commit ea0df42063
3 changed files with 70 additions and 71 deletions

View File

@@ -1,21 +1,21 @@
<div style="background-color:#ECECEC; padding: 35px;">
<table cellpadding="0" align="center" style="width: 80%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial initial; background-repeat: initial initial;background:#fff;">
<table cellpadding="0" align="center"
style="width: 80%; margin: 0px auto; text-align: left; position: relative; border-radius: 5px;font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background: #fff initial initial initial initial;">
<tbody>
<tr>
<th valign="middle" style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #C46200; background-color: #e01b3c; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">
<font face="微软雅黑" size="5" style="color: rgb(255, 255, 255); ">{site_name}</font></th>
<th
style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #C46200; background-color: #e01b3c; border-radius: 5px 5px 0px 0px;">
<span style="color: rgb(255, 255, 255); font-family: 微软雅黑; font-size: large; ">{site_name}</span></th>
</tr>
<tr>
<td>
<div style="padding:25px 35px 40px; background-color:#fff;">
<h2 style="margin: 5px 0px; ">
<font color="#333333" style="line-height: 20px; ">
<font style="line-height: 22px; " size="4">亲爱的用户:</font></font>
<span style="line-height: 20px; color: #333333; ">
<span style="line-height: 22px; font-size: medium; ">亲爱的用户:</span></span>
</h2>
<p style="font-size:14px;">
验证码为 {code}, 10分钟有效<br/>
如果不是您自己的操作,请忽略!
</p><br/>
<p style="font-size:14px;">验证码为 {code}, 10分钟有效</p>
<p style="font-size:14px;">如果您没有进行此操作,请忽略此邮件。</p>
<p align="right" style="font-size:14px;">{site_name} 官方团队</p>
<p align="right" style="font-size:14px;">{time}</p></div>
</td>

View File

@@ -1,22 +1,21 @@
<div style="background-color:#ECECEC; padding: 35px;">
<table cellpadding="0" align="center" style="width: 80%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial initial; background-repeat: initial initial;background:#fff;">
<table cellpadding="0" align="center"
style="width: 80%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial initial; background-repeat: initial initial;background:#fff;">
<tbody>
<tr>
<th valign="middle" style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #C46200; background-color: #e01b3c; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">
<font face="微软雅黑" size="5" style="color: rgb(255, 255, 255); ">{site_name}</font></th>
<th valign="middle"
style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #C46200; background-color: #e01b3c; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">
<span style="color: rgb(255, 255, 255); font-family: 微软雅黑; font-size: large; ">{site_name}</span></th>
</tr>
<tr>
<td>
<div style="padding:25px 35px 40px; background-color:#fff;">
<h2 style="margin: 5px 0px; ">
<font color="#333333" style="line-height: 20px; ">
<font style="line-height: 22px; " size="4">亲爱的用户:</font></font>
<span style="line-height: 20px; color: #333333; ">
<span style="line-height: 22px; font-size: medium; ">亲爱的用户:</span></span>
</h2>
<p style="font-size:14px;">
找回密码链接请点击:{url} 10分钟有效<br/>
如果您有什么疑问可以联系管理员Email: {email}
</p><br/>
<p style="font-size:14px;">找回密码链接请点击:{url} 10分钟有效</p>
<p>如果您有什么疑问可以联系管理员Email: {email}。</p>
<p align="right" style="font-size:14px;">{site_name} 官方团队</p>
<p align="right" style="font-size:14px;">{time}</p></div>
</td>

View File

@@ -1,22 +1,22 @@
<div style="background-color:#ECECEC; padding: 35px;">
<table cellpadding="0" align="center" style="width: 80%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial initial; background-repeat: initial initial;background:#fff;">
<table cellpadding="0" align="center"
style="width: 80%; margin: 0px auto; text-align: left; position: relative; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; font-size: 14px; font-family:微软雅黑, 黑体; line-height: 1.5; box-shadow: rgb(153, 153, 153) 0px 0px 5px; border-collapse: collapse; background-position: initial initial; background-repeat: initial initial;background:#fff;">
<tbody>
<tr>
<th valign="middle" style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #C46200; background-color: #e01b3c; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">
<th valign="middle"
style="height: 25px; line-height: 25px; padding: 15px 35px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #C46200; background-color: #e01b3c; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;">
<font face="微软雅黑" size="5" style="color: rgb(255, 255, 255); ">{site_name}</font></th>
</tr>
<tr>
<td>
<div style="padding:25px 35px 40px; background-color:#fff;">
<h2 style="margin: 5px 0px; ">
<font color="#333333" style="line-height: 20px; ">
<font style="line-height: 22px; " size="5">亲爱的 {username}</font></font>
<span style="line-height: 20px; color: #333333; ">
<span style="line-height: 22px; font-size: large; ">亲爱的 {nickname}</span></span>
</h2>
<p style="font-size:14px;">
感谢您加入{site_name} 请您在发表言论时,遵守当地法律法规。<br/>
请点击链接激活:{url} 10分钟有效<br/>
如果您有什么疑问可以联系管理员Email: {email}
</p><br/>
<p style="font-size:14px;">感谢您加入{site_name} 请您在发表言论时,遵守当地法律法规。</p>
<p style="font-size:14px;"> 请点击链接激活:{url} 10分钟有效</p>
<p style="font-size:14px;"> 如果您有什么疑问可以联系管理员Email: {email}。</p>
<p align="right" style="font-size:14px;">{site_name} 官方团队</p>
<p align="right" style="font-size:14px;">{time}</p></div>
</td>