Git Product home page Git Product logo

typecho-plugin-commenttomail's Introduction

Typecho 评论邮件提醒插件

访客评论后,将会发送评论内容到您指定的邮箱。

相比原版本,该版本基于消息队列的**,将存入数据库并稍后通过cron任务异步发送邮件的方式,取代内部直接http调用发送邮件,提升访客评论流畅度体验。

遵循GPL LICENSE v2,衍生于CommentToMail Byends版本 v2.0.0

实验性警告

发布仓促,许多地方尚待完善。如果发现问题请及时与我联系,也欢迎各种issue、PR。

使用说明

  1. 下载插件
  2. 将插件上传到 /usr/plugins/ 目录下
  3. 修改主题模板comments.php文件,在评论form表单的适当位置添加name为receiveMail的选择框(checkbox)。示例代码
  4. 登陆后台,在“控制台”下拉菜单中进入“插件管理”
  5. 启用相关插件
  6. 设置smtp服务器地址、邮箱地址、密码等信息
  7. 设置cron定时执行发送队列。(注意替换链接中的key为所自己设置的)

评论参考代码

该代码必须在适当位置加入,如未加入该代码,则插件将默认按照不发送提醒邮件处理所有评论。

  • 正常显示选择框: <input type="checkbox" name="receiveMail" id="receiveMail" value="yes" checked /> <label for="receiveMail" style="padding-left:8px;">当有人回复时接收邮件提醒</label>
  • 隐藏选择框(默认接受邮件): <input type="hidden" name="receiveMail" id="receiveMail" value="yes" />

升级日志

3.1.0 Upgrade at 2017-06-11
  • 添加清理选项
  • 修正表结构
  • 完善日志记录
3.0.0 Upgrade at 2016-07-30

版本要求:需要 Typecho 0.9 (13.12.12)

注意:由于此版本改动较大,请先在 插件管理 中心禁用该插件的低级版本,然后再上传插件并重新激活插件,配置设置

typecho-plugin-commenttomail's People

Contributors

hycinth22 avatar

Stargazers

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

Watchers

 avatar  avatar

typecho-plugin-commenttomail's Issues

点击启用一片空白

其他插件并没有问题。请问怎么回事?
再问一个,插件名是Typecho-Plugin-CommentTomail还是CommentTomail,解压后文件夹用哪个名字

refactor

由于与原始版本有一定差异,代码更改有些杂乱重复,以及发现了部分遗留问题,预计七月或八月进行一次大面积的重构

请问设置Cron定时发送那里应该怎么写?

任务写成 /usr/bin/curl https://…这样可以吗?
我尝试直接curl这个网址,返回的内容里写 no permission。在本地用浏览器访问是没问题。

我不太了解这方面的东西,麻烦了

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.