我们将 Wordpress 从 4.1.something 更新到 4.7.3。一切正常,除了用户重置密码时包含新密码的邮件。密码还是重设了,但是重设的密码收不到邮件,无法登录。据我所知,这是唯一失败的邮件,注册邮件之类的还能用。
代码应该没有任何问题,它已经工作了多年。但是更新时显然有些混乱。尝试发送邮件时,出现以下错误。
PHP Fatal error: Uncaught exception 'phpmailerException' with message 'Invalid address: (setFrom) service' in /var/www/site-adress/public_html/wp/wp-includes/class-phpmailer.php:1023
Stack trace:
#0 /var/www/site-adress/public_html/wp/wp-includes/pluggable.php(352): PHPMailer->setFrom('service', 'WordPress', false)
#1 /var/www/site-adress/public_html/wp-content/themes/site/functions.php(320): wp_mail('dummy.mail...', 'Site: passwor...', 'Your new passwo...', 'From: service')
#2 [internal function]: {closure}('')
#3 /var/www/site-adress/public_html/wp/wp-includes/class-wp-hook.php(298): call_user_func_array(Object(Closure), Array)
#4 /var/www/site-adress/public_html/wp/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
#5 /var/www/site-adress/public_html/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#6 /var/www/site-adress/public_html/wp/wp-admin/admin-ajax.php(101): do_action in /var/www/site-adress/public_html/wp/wp-includes/class-phpmailer.php on line 1023
有谁知道这应该如何解决?这个信息是什么意思?问题出在哪里?
谢谢,提前。