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
本文标签:
版权声明:本文标题:users - Condionallylimited emails from system (cantact-form, registration, passwd reset)With 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1736767486a1758791.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论