WP-Mail-SMTP与使用留言回复通知插件(Comment Reply Notification)无法发送

在给朋友博客留言的时候总是能接到回复邮件提示,老俍也想弄一个,找了网上的说明,安装了两个插件,Comment Reply Notification和WP-Mail-SMTP,但还是不能正常接到邮件,感谢杨若岚的帮助,不停的帮我想办法,最后终于搞定。把解决办法放上来备用。

在插件目录下编辑WP-Mail-SMTP插件的wp_mail_smtp.php文件。
找到此处代码:

// If the from email is not the default, return it unchanged
if ( $orig != $default_from ) {
return $orig;
}

删除或注释掉这段代码就可以,如果懒的朋友可以拷贝我下面的代码,覆盖一下就可以。

// If the from email is not the default, return it unchanged
/* 为兼容 Comment Reply Notification 插件而注释
if ( $orig != $default_from ) {
return $orig;
}
*/

完美!

本站 [ 俍注 ] 内除注明转载文章,其他均为老俍独立创作,采用「CC BY-NC-ND 4.0」创作共享协议。
原创不易,希望保留原文链接转载,原文链接:https://my.lmcjl.com/tech/1258.html

本文链接:https://my.lmcjl.com/post/13570.html

展开阅读全文

4 评论

留下您的评论.