admin 管理员组

文章数量: 1184232

With:

add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from( $email ) {
  return "[email protected]";
}
add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function my_mail_from_name( $name ) {
  return "example - Admin";
}

I adjusted the 'user' of the host in the 'function.php' for sending system emails. When testing the contact page, this also works wonderfully and the system fires the message to the admin(not on the same host).

When I test the 'Reset password' (forgotten password?) function, the system does not fire an email (not even to the admin). If a user wants to register, the system also does not fire a registration email. The root directory is recursively owned by www-data:www-data (there were problems installing plugins until I changed them to this user).

Why does it work properly with the contact form but not with new registrations and PW resets? What do I have to do to fix the error or what could be the problem?

…Thank you in advance

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)