Mailer-Typecho评论邮件提醒插件的板太单调了,所以我觉得是时候换一波邮件模板了。
于是我找到了这个模板:

演示图
Mailer.png

一番修改后,有了如下两个模板:
Mailer1.png
Mailer2.png

Mailer插件模板可以在插件设置里换,如果失败的话,可以直接到插件目录下换。博主模板对应templateHost.html,访客模板对应templateGuest.html,直接复制下面的源码替换即可。背景啥的可以自己改。

博主收信模板

<div style="width: 550px;height: auto;border-radius: 5px;margin:0 auto;border:1px solid #666;box-shadow: 0px 0px 20px #888888;position: relative;padding-bottom: 5px;">
    <div style="background-image: url(https://cdn.irow.top/bg/0002.jpg);width:550px;height: 250px;background-size: cover;background-repeat: no-repeat;border-radius: 5px 5px 0px 0px;"></div>
    <div style="width: 200px;height: 40px;background-color: #91a5a5;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:
        <span style="text-decoration:none;color:#FFF;">{{post_author_name}}</span>
    </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="{{post_permalink}}" target="_blank" rel="noopener">《{{post_title}}》</a>有新评论啦~</h2>
        <div style="padding:0 12px 0 12px;margin-top:18px">
            <p>评论:<span style="border-bottom:1px dashed #ccc;">{{comment_content}}</span></p>
            <p>来自:<span style="border-bottom:1px dashed #ccc;"><a style="text-decoration:none;color:#555555;" href="mailto:{{comment_author_mail}}"
                     target="_blank" rel="noopener">{{comment_author_name}}</a></span></p>
            <p>IP:<span style="border-bottom:1px dashed #ccc;">{{ip}}</span></p>
            <p>状态:<span style="border-bottom:1px dashed #ccc;">{{status}}</span></p>
        </div>
    </div>
    <div style="color:#FFF;width: 40%;text-align: center;background-color:#91a5a5;height: 40px;line-height: 35px;box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.30);margin: -10px auto;">
        <a style="text-decoration:none;color:#FFF;" href="{{comment_permalink}}" target="_blank" rel="noopener">查看评论</a> | <a
         style="text-decoration:none;color:#FFF;" href="{{manage_url}}" target="_blank" rel="noopener">管理评论</a>
    </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;">
        <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;">
            <p>&copy; Copyright <span style="border-bottom:1px dashed #ccc;z-index:1" t="7" onclick="return false;" data="2019">2019</span>
                <a style="text-decoration:none;color: #8c8c8c;" href="{{site_url}}" target="_blank" rel="noopener">{{site_name}}</a></p>
        </div>
    </div>
</div>

访客收信模板

<div style="width: 550px;height: auto;border-radius: 5px;margin:0 auto;border:1px solid #666;box-shadow: 0px 0px 20px #888888;position: relative;padding-bottom: 5px;">
    <div style="background-image: url(https://cdn.irow.top/bg/0002.jpg);width:550px;height: 250px;background-size: cover;background-repeat: no-repeat;border-radius: 5px 5px 0px 0px;"></div>
    <div style="width: 200px;height: 40px;background-color: #91a5a5;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:
        <span style="text-decoration:none;color:#FFF;">{{comment_parent_author_name}}</span>
    </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="{{post_permalink}}" target="_blank" rel="noopener">《{{post_title}}》</a>的评论有新回复啦~</h2>
        <div style="padding:0 12px 0 12px;margin-top:18px">
            <p>您的评论:<br><span style="border-bottom:1px dashed #ccc;">{{comment_parent_content}}</span></p>
            <p>收到了来自 <b>{{comment_author_name}}</b> 的回复:<br><span style="border-bottom:1px dashed #ccc;">{{comment_content}}</span></p>
        </div>
    </div>
    <a style="text-decoration:none; color:#FFF;width: 40%;text-align: center;background-color:#91a5a5;height: 40px;line-height: 35px;box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.30);margin: -10px auto;display: block;"
     href="{{comment_permalink}}" target="_blank" rel="noopener">查看完整回复</a>
    <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;">
        <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;">
            <p>如果不打算回复或不是您的评论,请忽略此消息.</p>
            <p>本邮件为系统自动发送,请勿直接回复~</p>
        </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;">
            <p>&copy; Copyright <span style="border-bottom:1px dashed #ccc;z-index:1" t="7" onclick="return false;" data="2019">2019</span>
                <a style="text-decoration:none;color: #8c8c8c;" href="{{site_url}}" target="_blank" rel="noopener">{{site_name}}</a></p>
        </div>
    </div>
</div>

最后附上插件下载地址

Last modification:November 17th, 2019 at 09:25 am
如果觉得我的文章对你有用,请随意赞赏