admin管理员组文章数量:1434015
So I have been debugging the code:
$message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
$message .= __('To set your password, visit the following address:') . "\r\n\r\n";
$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n";
$message .= wp_login_url() . "\r\n";
wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message);
If I remove the $message
variable from wp_mail()
and replace with with "hello" it sends fine, but if I use the message variable, I get no errors, it claims to have sent, but never actually gets sent.
What causes this, and how can I fix the $message
variable?
本文标签: pluginsWordPress isn39t sending welcome email with the password reset
版权声明:本文标题:plugins - WordPress isn't sending welcome email with the password reset 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745569967a2663986.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论