【问题标题】:Wordpress sending “Delivery status notification Failure” to my inbox every 7 minutesWordpress 每 7 分钟向我的收件箱发送“交付状态通知失败”
【发布时间】:2013-09-25 17:37:40
【问题描述】:

我们收到了从 wordpress@domain.com 发送到 jaqqscigs@gmail.com 的垃圾邮件。我试过 MU 插头 (Wordpress and wamp sending "Delivery status notification Failure" to my inbox every 7 minutes) 但我遇到了解析错误。有什么方法可以禁用从 wordpress 发送的邮件?我们已更改密码,禁用密码等..

谢谢!

特拉维斯

【问题讨论】:

  • 这个问题似乎是题外话,因为它是关于 wordpress 而不是编码问题。

标签: wordpress spam


【解决方案1】:

试试这个(未测试)。根据您的使用情况,您可能不想抛出 phpmailerException....

class fakemailer {
    public function Send() {
        throw new phpmailerException( 'Cancelling mail' );
    }
}

if ( ! class_exists( 'phpmailerException' ) ) :
class phpmailerException extends Exception {
    public function errorMessage() {
        $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
        return $errorMsg;
    }
}

add_action( 'phpmailer_init', 'wpse_53612_fakemailer' );
function wpse_53612_fakemailer( $phpmailer ) {
    if ( ! /* condition */ ) 
        $phpmailer = new fakemailer();
}

https://wordpress.stackexchange.com/questions/53612/how-to-stop-the-wp-mail-function

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多