Hi,
Some server setups does not work with a change made to the mail function in WordPress 4.6, a patch is ready for a 4.6.1 release, so if you are comfortable applying a change to WordPress core manually then you can do so.
The ticket for it is at https://core.trac.ww.wp.xz.cn/ticket/37736, and the edit is a small one:
Edit the file /wp-includes/pluggable.php, on line 352 replace $phpmailer->setFrom( $from_email, $from_name ); with $phpmailer->setFrom( $from_email, $from_name, false );
Thread Starter
jscmal
(@jscmal)
Thanks, I will check it soon.
I have to say that it is something strange for me.
because that problem happens ONLY for the contact form by jetpack and the comment notifications.
Other things like buddypress and the membership plugin work properly with emails.
AND what give me perplexity is that it happens ONLY in 1 of my websites and not in all the wordpress websites updated to 4.6
Finding this saved my day, it’s exactly what happend to multiple installations and made me crazy: I did not get any backups and the contact forms were not working…
Thanks Marius, and good to know there’s a fix for this in the next update…
That is indeed strange, but it may be related to the account it’s running on etc so I’d try the patch, and then we’ll take it from there once we’ve eliminated that as a possible cause of the problem 🙂
Thread Starter
jscmal
(@jscmal)
Hi Marius L.J. ,
the fixing worked properly.
Thanks.
The file will be substitute with a new one when there will be the release 4.6.1 or will we have to remove manually the fixing added now?
Hi,
The fix will be fully implemented with the 4.6.1 update once it gets released, you don’t need to make any changes at all 🙂