评论邮件通知模版:Twikoo & Waline
![](https://imgs.zo1.top/cover/20230806/mail.png)
评论邮件通知模版:Twikoo & Waline
YuanMo主要是记录评论邮件通知模版,之前经常失效,想着直接记录下来,以备日后使用,资源内容参考Heo、葱苓sama和CC康纳百川
Twikoo
邮件样式
代码
MAIL_SUBJECT
1
您在 Hwe博客 上发表的评论,收到了来自 博主 的回复
MAIL_TEMPLATE
1
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title></head><body><div><div style="display:flex;position:relative;width:100%;height:206px;background:#ef859d2e;top:0;left:0; justify-content:center; border-radius: 10px 10px 0 0;"><div style="background-image: url(https://cdn.cbd.int/imgbed-npm@2.0.6/blog/appstore.ico);position: absolute; width: 152px;height: 152px; display: flex; top:130px;background-size: cover;border-radius: 50%;border: 5px solid rgb(0, 255, 255);"></div> <div style="border-radius: 100%; background-color: #6bdf8f; width: 35px; height: 35px; position: absolute; border: 6px solid #fff; top: 96%; left: 49.6%; transform: translate(35px,45px);"></div></div><div style="margin-top:92px;display:flex;flex-direction:column; border-radius: 0 0 10px 10px;"><div style="display:flex;flex-direction:column; margin: 0 20px;"><span style="font-size: 26px; font-family: PingFang-SC-Bold,PingFang-SC;font-weight: bold;color: #000000;line-height: 37px; text-align: center;">嘿!你在 ${SITE_NAME} 收到一条新回复。</span><span class="text_2" style=" font-size: 16px;font-family: PingFang-SC-Bold, PingFang-SC;font-weight: bold; color: #00000030; line-height: 22px; margin-top: 21px;text-align: center;">你之前的评论 在 ${SITE_NAME} 收到来自 ${NICK} 的回复</span></div><div style="margin: 0 10px;min-height: 128px;background: #F7F7F7;border-radius: 12px;margin-top: 34px;display: flex;flex-direction: column;padding: 32px 16px; width: calc(100% - 40px);"><div style="display:flex; margin-bottom:10px;"><span style="display:flex; flex-direction:column; margin-left:10.6px;"><span style="height:22px; font-size:16px; font-family:PingFang-SC-Bold, PingFang-SC; font-weight:bold; color:#C5343E; line-height:22px;">${PARENT_NICK}</span><span style="margin-top:6px; margin-right:22px; font-size:16px; font-family:PingFangSC-Regular,PingFang SC; font-weight:400; color:#000000; line-height:22px; padding:5px 10px;border-radius:6px;">${PARENT_COMMENT}</span></span></div><hr style="display:flex; position:relative; box-sizing:content-box; height:0px; overflow:visible; width:100%; border: 1px dashed #ef859d2e;"> <div style="display:flex; right:0; justify-content:flex-end; margin: 15px 0 20px;"><span style="display:flex; flex-direction:column;"><span style="height:22px; font-size:16px; font-weight:bold; color:#C5343E; line-height:22px; font-family:Arial,PingFang-SC-Bold,PingFang-SC; text-align:right;">${NICK}</span><span style="margin-top:6px; font-size:16px; font-family:PingFangSC-Regular,PingFang SC; font-weight:400; color:#000000; line-height:22px; padding:5px 10px; border-radius:6px;">${COMMENT}</span> </span></div><a style="min-width: 106px;height: 38px;background: #ef859d38;border-radius: 32px; display: flex; align-items: center; justify-content: center; text-decoration: none; margin: 32px auto 0;" href="${POST_URL}"> <span style="color: #DB214B;">查看详情</span> </a> </div> <div style=" display: flex; flex-direction: column; align-items: center; margin-top: 34px;"> <span style=" height: 17px; font-size: 12px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #00000045; line-height: 17px;">此邮件由评论服务自动发出,直接回复无效。</span> <a class="text_7" style="height:17px; font-size:12px; font-family:PingFangSC-Regular,PingFang SC; font-weight:400; color:#DB214B; line-height:17px; margin-top:6px; text-decoration:none;" href="${SITE_URL}">前往博客</a> </div> </div> </div> </body> </html>
MAIL_SUBJECT_ADMIN
1
Hwe博客上收到了新的的评论
MAIL_TEMPLATE_ADMIN
1
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div> <div style=" display:flex; position:relative; width:100%; height:206px; background:#ef859d2e; top:0; left:0; justify-content:center; border-radius: 10px 10px 0 0;"> <div style=" position:absolute; background-image: url(https://cdn.cbd.int/imgbed-npm@2.0.6/blog/appstore.ico); width: 152px; height: 152px; display: flex; top: 130px; background-size: cover; border-radius: 50%; border: 5px solid rgb(0, 255, 255);"> </div> <div style=" border-radius: 100%; background-color: #6bdf8f; width: 35px; height: 35px; position: absolute; border: 6px solid #fff; top: 96%; left: 49.6%; transform: translate(35px, 45px);"></div> </div> <div style="margin-top:92px; display:flex; flex-direction:column; border-radius: 0 0 10px 10px;"> <div style=" display: flex; flex-direction: column; margin: 0 20px;"> <span style=" font-size: 26px; font-family: PingFang-SC-Bold, PingFang-SC; font-weight: bold; color: #000000; line-height: 37px; text-align: center;">${SITE_NAME} 有新评论了。</span> <span style=" font-size: 16px; font-family: PingFang-SC-Bold, PingFang-SC; font-weight: bold; color: #00000030; line-height: 22px; margin-top: 21px; text-align: center;">${SITE_NAME} 收到了来自 ${NICK} 的新评论。</span> </div> <div style=" margin: 0 10px; min-height: 128px; background: #F7F7F7; border-radius: 12px; margin-top: 34px; display: flex; flex-direction: column; padding: 32px 16px; width: calc(100% - 40px);"> <div style=" display: flex; margin: 15px 0 20px; width: 100%;"> <div style=" display: flex; flex-direction: column; margin-left: 10.6px;"> <span style=" height: 22px; font-size: 16px; font-weight: bold; color: #C5343E; line-height: 22px; font-family: Arial, PingFang-SC-Bold, PingFang-SC;">${NICK}</span> <span style=" margin-top: 6px; font-size: 16px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #000000; line-height: 22px; padding: 5px 10px; border-radius: 6px;">${COMMENT}</span> </div> </div> <a style=" min-width: 106px; height: 38px; background: #ef859d38; border-radius: 32px; display: flex; align-items: center; justify-content: center; text-decoration: none; margin: 32px auto 0;" href="${POST_URL}"> <span style="color: #DB214B;">查看详情</span></a> </div> <div style=" display: flex; flex-direction: column; align-items: center; margin-top: 34px;"> <span style=" height: 17px; font-size: 12px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #00000045; line-height: 17px;">此邮件由评论服务自动发出,直接回复无效。</span> <a style=" height: 17px; font-size: 12px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #DB214B; line-height: 17px; margin-top: 6px; text-decoration: none;" href="${SITE_URL}">前往博客</a> </div> </div> </div> </body> </html>
Waline
邮件样式
暂无
代码
1 | mailSubject: '{{parent.nick}},您在 {{site.name}} 上发表的评论,收到了来自 {{self.nick}} 的回复', |
以上代码需要配置到环境中使用
TG代码
1 | 💬 _[{{site.name}}]({{site.url}}) 有新评论啦_ |
1 |
|