分享几个在网上扒来的邮件模板。要使用这些模板,需要安装并启用 CommentToMail 插件,然后在评论邮件提醒控制台里将模板代码复制到 guest.html

好像水文的能力又加强了 (o゚v゚) ノ


这个模板来自 kir­ima sharo《水 更新了一下邮件的样式~》,已经替换掉了原模板中的图片和一些链接。

<div style="background: white; width: 80%; margin: 100px auto; border-radius: 5px; border:#e91e639e 1px solid; overflow: hidden; -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.12); box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.18);"> <header style="overflow: hidden;"> <a href="#"> <img style="width:100%;" src="这里填你自己的图片链接"> </a> </header> <div style="padding: 5px 20px;"> <p style="position: relative; color: white; float: left; background: #e91e63; padding: 5px 30px; margin: -25px auto 0 ; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.30)">Mail <br> <h3>您在<a style="text-decoration: none;color: #e91e63 " target="_blank" href="{permalink}">{title}</a>有新的回复</h3> <br> <p style="font-size: 14px;">您在文章《{title}》上发表的评论: <p style="border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0px;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"> {text_p} <p style="font-size: 14px;">博主给您的回复如下 <p style="border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0px;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"> {text} <p style="font-size: 13px;text-align: right;">{time} <hr> <div style="text-align: center;"><a style="text-transform: uppercase; text-decoration: none; font-size: 14px; border: 2px solid #6c7575; color: #2f3333; padding: 10px; display: inline-block; margin: 10px auto 0; " target="_blank" href="{permalink}">查看回复的完整内容</a></div> <br> <p style="font-size: 14px;text-align: center;">(本邮件为系统自动发送,请勿直接回复。tip:图片显示不了的添加信任即可! 欢迎再次光临<a style="text-decoration: none;color: #e91e63" target="_blank" href="这里填博客地址">博客的名字</a>) </div> </div>

Kirima Sharo
Kirima Sharo


这个模板来自小尾巴《Typecho - 邮件模板》

<div style="background: #f8f8f8; color: #666; font-size: 12px;"> <div style="width: 570px; margin: 0 auto; background: #fff; padding: 25px 70px; border-top: 30px solid #1abc9c;"> <div style="text-align: center; margin-bottom: 40px; line-height: 1.8em;"> <h1 style="color: #333;">小尾巴</h1> </div> <p style="font-size: 18px; color: #333;">{author_p}, 您好! 您曾在《<a target="_blank" href="{permalink}">{title}</a>》上发表评论: &nbsp;&nbsp;&nbsp;&nbsp; <p style="border: 1px solid #eee; padding: 20px; margin: 15px 0;"> {text_p} {author} 给您的回应: &nbsp;&nbsp;&nbsp;&nbsp; <p style="border: 1px solid #eee; padding: 20px; margin: 15px 0;"> <a href="' . htmlspecialchars(get_comment_link($parent_id)) . '">{text} </a> <p class="footer" style="border-top: 1px solid #DDDDDD; padding-top: 6px; margin-top: 15px; color: #838383; text-align: center;"> 你可以点击此链接 <a target="_blank" href="{permalink}">查看完整內容</a>|欢迎再次来访 <a href="博客地址">博客名字</a> <a style="display: block; width: 400px; height: 40px; background: #1abc9c; margin: 25px auto 40px; font-size: 16px; line-height: 40px; letter-spacing: 3px; color: #f8f8f8; text-align: center; text-decoration: none;" href="博客地址" target="_blank">发现更多精彩&gt;&gt;</a> <p style="text-align: center;color: #bbb;margin-top: 40px;">「{siteTitle}」 2018 Copyright. </div> </div>

小尾巴
小尾巴


这个模板来自 Mikuac 《Typecho 邮件提醒模板》, 和 kir­ima 的有点像,大概是照着他的改的吧。

<div style="width: 550px;height: auto;border-radius: 5px;margin:0 auto;border:1px solid #ffb0b0;box-shadow: 0px 0px 20px #888888;position: relative;padding-bottom: 5px;"> <div style="background-image: url(这里填你自己的图片链接);width:550px;height: 300px;background-size: cover;background-repeat: no-repeat;border-radius: 5px 5px 0px 0px;"> </div> <div style="width: 200px;height: 40px;background-color: rgb(255, 114, 114);margin-top: -20px;margin-left: 20px;box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);color: rgb(255, 255, 255);text-align: center;line-height: 40px;"> Dear: {author_p}</div> <div style="background-color:white;line-height:180%;padding:0 15px 12px;width:520px;margin:30px auto;color:#555555;font-family:'Century Gothic','Trebuchet MS','Hiragino Sans GB',微软雅黑,'Microsoft Yahei',Tahoma,Helvetica,Arial,'SimSun',sans-serif;font-size:12px;margin-bottom: 0px;"> <h2 style="border-bottom:1px solid #DDD;font-size:14px;font-weight:normal;padding:13px 0 10px 8px;"><span style="color: #12ADDB;font-weight: bold;">&gt; </span>您在<a style="text-decoration:none;color: #12ADDB;" href="{permalink}" target="_blank">《{title}》</a>的评论有了新的回复呐~</h2> <div style="padding:0 12px 0 12px;margin-top:18px">时间:<span style="border-bottom:1px dashed #ccc;" t="5" times=" 20:42">{time}</span> 您的评论: <p style="background-color: #f5f5f5;border: 0px solid #DDD;padding: 10px 15px;margin:18px 0">{text_p} <strong>{author}</strong>&nbsp;给您的回复: <p style="background-color: #f5f5f5;border: 0px solid #DDD;padding: 10px 15px;margin:18px 0">{text} </div> </div> <a style="text-decoration:none; color:#FFF;width: 40%;text-align: center;background-color:#ff7272;height: 40px;line-height: 35px;box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.30);margin: -10px auto;display: block;" href="{permalink}" target="_blank">查看回复的完整内容</a> <div style="color:#8c8c8c;;font-family: 'Century Gothic','Trebuchet MS','Hiragino Sans GB',微软雅黑,'Microsoft Yahei',Tahoma,Helvetica,Arial,'SimSun',sans-serif;font-size: 10px;width: 100%;text-align: center;margin-top: 30px;">本邮件为系统自动发送,请勿直接回复~ </div> <div style="color:#8c8c8c;;font-family: 'Century Gothic','Trebuchet MS','Hiragino Sans GB',微软雅黑,'Microsoft Yahei',Tahoma,Helvetica,Arial,'SimSun',sans-serif;font-size: 10px;width: 100%;text-align: center;">©2017-2019 Copyright {author} </div> </div>