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,26 +1,26 @@
<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;">
<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>
</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>
</h2>
<p style="font-size:14px;">
感谢您加入{site_name} 请您在发表言论时,遵守当地法律法规。<br/>
请点击链接激活:{url} 10分钟有效<br/>
如果您有什么疑问可以联系管理员Email: {email}
</p><br/>
<p align="right" style="font-size:14px;">{site_name} 官方团队</p>
<p align="right" style="font-size:14px;">{time}</p></div>
</td>
</tr>
</tbody>
</table>
<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>
</tr>
<tr>
<td>
<div style="padding:25px 35px 40px; background-color:#fff;">
<h2 style="margin: 5px 0px; ">
<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} 请您在发表言论时,遵守当地法律法规。</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>
</tr>
</tbody>
</table>
</div>