Coder Social home page Coder Social logo

typecho-plugin-mailer's Introduction

Typecho Mailer Plugin

📧 又一款评论邮件提醒插件。

本插件需要使用 Typecho 开发版(17.11.15 以上版本)。插件支持自定义模板。使用 Typecho 最新的异步回调机制编写,基于 Joyqi 给出的 Demo

发信规则如下:

评论者 被评论对象 发信规则
博主 文章 不发信
博主 博主 不发信
博主 访客 提醒访客
访客 文章 提醒博主
访客 博主 提醒博主
访客 访客(本人) 提醒博主
访客 访客(非本人) 提醒评论对象与博主

也可以单独设置是否提醒博主或者访客。待审或垃圾评论不会提醒访客。

使用

下载插件,上传至插件目录,后台启用后设置相关信息。然后在博客评论区 form 元素中合适位置添加:

<span>
    <input name="receiveMail" type="checkbox" value="yes" checked />
    <label for="receiveMail"><strong>接收</strong>邮件通知</label>
</span>

以上代码必须添加,不添加不会发信。VOID 主题开发版已做了处理。

然后在插件设置页面填写发件信息。注意,如果你是用的 QQ 之类的邮箱,可能需要生成专用密码,而不能直接使用登陆密码。

插件默认提供了一个比较简单的发信模板,如果有好看的模板欢迎在 issue 区分享。模板中可以使用一些变量,见插件设置页说明。

日志

2019.05.25

  • 修复后台回复不发信的问题(可能需要禁用后重新启用插件)

License

MIT © AlanDecode

typecho-plugin-mailer's People

Contributors

alandecode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

typecho-plugin-mailer's Issues

评论为空时,禁用插件后再添加会出现Database Query Error

image
因为在这里判断数据库中是否存在receiveMail列是通过取一行来判断的,当comments数据库中没有评论数据时会判断为不存在该列。如果之前启用了该插件,数据库中会存在receiveMail列。若禁用并再次启用且无评论数据,那么又会将该列加入数据库中,所以报错

邮件提醒发生了未知错误

我博客用的是1.2版本
在使用插件的时候收不到评论提醒的信件
打开强制同步发送后,直接无法评论了
显示下方报错
QQ截图20220413104103

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.