Code Monkey home page Code Monkey logo

mengzemail's Introduction

MengZemail-Typecho新评论邮箱提醒插件

我自己做的一个插件,我看着typecho的评论邮箱提醒插件不多,而且大部分主题不自带这个功能,就做了这个插件,瞎写的,还请凑活。 该插件使用PHPMailer来发送邮件,目前只有评论提醒博主功能,没有回复提醒,后面会改变。 如果想自定义邮件样式,请修改以下代码:

private static function mailBody($comment)
{
    $content .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
    $content  = '<div style="background-color: #9A9BA4DB; padding: 10px; border-radius: 5px;">';
    $content .= '<h3 style="color: #000;">评论人: ' . $comment->author . '</h3>';
    $content .= '<p style="color: #000;">评论内容: ' . $comment->text . '</p>';
    $content .= '<p style="color: #000;">评论地址: ' . $comment->permalink . '</p>';
    $commentAt = new Typecho_Date($comment->created);
    $commentAt = $commentAt->format('Y-m-d H:i:s');
    $content .= '<p style="color: #000;">评论时间: ' . $commentAt . '</p>';
    $content .= '</div>';
$content .= '<a style="color: #000;" href="' . $comment->permalink . '">点我查看</a>';
    return $content;
}

安装教程

导入到Typecho程序 usr/plugins/ 目录中,并解压

解压后文件夹名称必须为MengZemail

更新日志

1.0.0版本

  • 插件制作完成,正式发布

mengzemail's People

Contributors

mengzemc avatar

Stargazers

Mr.C avatar  avatar  avatar

Watchers

 avatar

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.