Hi,
This is a know problem with certain hosts, we’ve got a patch for it that will be included with 4.6.1 but we cannot say when such a release will be available.
Until then you can manually apply the patch from https://core.trac.wordpress.org/attachment/ticket/37736/37736.patch if you’d like.
You could also avoid the bug by installing a plugin that sends mail through SMTP, like WP Mail SMTP.
Oh, it looks like you’ll also need to configure WP Mail SMTP to make sure the “Return Path” box is checked.
@marius Thanks, I have tried adding the patches, however the site just keeps loading for the password reset request, contact form submission etc. I wonder why, do you have any clue on this?
@ian Thanks, the solution works! But hopefully WP will get the new version set up asap, so the sites can work without any SMTP plugin assistance.
@marius I may have not apply the patch correctly, what’s the correct way? Kindly guide, thank you!
I’m having this issue on siteground.
I applied the patch and emails are sent again. Thanks @marius.
@sweetmelody. This is what I did on one site. Siteground use cPanel
1. Go to File manager
2. Open the folder wp-includes
3. Edit the pluggable.php file
4. Find line 352
5. Change it FROM $phpmailer->setFrom( $from_email, $from_name );
TO $phpmailer->setFrom( $from_email, $from_name, false );
6. Save the file.
Although it goes without saying, I’ll say it anyway. Backup the site first.
The same can be done using ftp, which I did on all the other sites affected.
Hope it works for you, @sweetmelody.
Once again, thanks @marius.
@johnski
Thanks for the writeup on how to perform the manual change to the file.
Of course, we’d normally never recommend editing a core file directly, but in this case it’s an approved patch that will be included with the next update any way, as such it’s safe to apply it directly 🙂
Hi Johnski,
It’s working!!! Thanks a million!!!
Instead of just adding the ‘false’ behind, my host and I replaced this:
$phpmailer->setFrom( $from_email, $from_name );
to:
$phpmailer->setFrom( $from_email, $from_name );
$phpmailer->setFrom( $from_email, $from_name, false );
A naive copy and paste fault. 🙂
Btw, I’m seeing WP has changed/forced the email header to WordPress, instead of the previous default – site name, is this a bug or new WP default?
The From part wasn’t changed in 4.6, no.
It will always set “WordPress” as the sender name unless something else is changing it via a filter.
Oh really? But my WP sites got the change since 4.6. Anyway, thanks so much @marius!!! 🙂