使用两款插件,即 Configure SMTP 搭配 Comment Reply Notification 实现邮件通知被回复功能。即在你的网站上,留言者的留言被回复后会给留言者发送邮件通知,邮件内容包括他收到的留言和所在的文章链接等。

第一步

安装插件启用后先配置 Configure SMTP 插件。进入插件设置页面之后,按照下图指示的地方填入你的邮箱信息,如果使用的是 GMail 就不用填了,勾上顶部的“Send e-mail via GMail?”,下面的设置就是全自动的了。

第二步

进入 Comment Reply Notification 设置页面进行邮件内容的设置。设置界面如下:

在上图中能看到,第一部分是选择什么时候邮件通知。 如果你的主题中没有出现该选择框,请检查你主题的 comments.php 模板是否含有 comment_form action 函数。

第二部分是设置邮件的内容。包括邮件标题和邮件正文。支持一些宏(即关键字),它们分别代表的功能列在下面:

[cc lan=”html”]
[pc_author] — 被回复留言的作者名字
[pc_date] — 被回复留言的日期
[pc_content] — 被回复留言的内容

[cc_author] — 回复留言的作者名字
[cc_date] — 回复留言的日期
[cc_url] — 回复留言的链接
[cc_content] — 回复留言的内容

[commentlink] — 被回复留言的链接
[blogname] — 博客名字
[blogurl] — 博客地址
[postname] — 日志名字
[/cc]

Comment Reply Notification 的通知内容模板

你可以使用默认的内容充当邮件,下面贴上我使用的邮件内容代码,欢迎参考。

[cc lan=”html”]

[blogname]:亲爱的[pc_author],[cc_author]回复了你于[pc_date] 对“ [postname] ”这篇文章的评论。

你的评论原文是:
[pc_content]

对你回复的内容是:
[cc_content]

更多请查看:
[commentlink]

感谢你关注[blogname]

PS:这封邮件是自动发送的,请不要回复!

—————————————————————–

[blogname]: Your comment on the post [postname] has a new reply

Here is your original comment:
[pc_content]

Here is the new reply:
[cc_content]

You can see more information for the comment on this post here:
[commentlink]

Thank you for your commenting on [blogname]

This email was sent automatically. Please don’t reply to this email.

[/cc]

主要内容就是这些,祝你好运!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注