WordPress Invalid address: (setFrom) 解决方案

FROYO博主给博客留言的时候,发现了这个错误,分享一下解决方法 注释wp-inclue/class-phpmailer.php第1016-1026行

/*if (($pos = strrpos($address, '@')) === false or
            (!$this->has8bitChars(substr($address, ++$pos)) or !$this->idnSupported()) and
            !$this->validateAddress($address)) {
            $error_message = $this->lang('invalid_address') . " (setFrom) $address";
            $this->setError($error_message);
            $this->edebug($error_message);
            if ($this->exceptions) {
                throw new phpmailerException($error_message);
            }
            return false;
        }*/

2 thoughts on “WordPress Invalid address: (setFrom) 解决方案”

Leave a Reply

Your email address will not be published. Required fields are marked *