@hovig10,
just find wp-includes/pluggable.php file,
open it for editing,
go to line 352,
Replace
$phpmailer->setFrom( $from_email, $from_name );
with
$phpmailer->setFrom( $from_email, $from_name, false );
@vasili4
I tried that but still not working. Still getting the “There was an error trying to send your message. Please try again later.”
That patch is fixing specific bug introduced in WP 4.6, on specific server configuration.
You might have another case.
Did the error appear after upgrading to WP 4.6 for you? Was it working before?
Well, it’s a brand new site so we started with WP 4.6 just a couple of days ago. Today is the first day we are testing the Contact Form on it.
But the form is working fine on other sites I have.
@hovig10, are you sure your new server is configured to send emails?
If you have access to your server shell, try to send simple email in console:
echo "Mail body" | mail -s "Subject: some subject" [email protected]
Correction: Other sites working with WP 4.5. Afraid to upgrade to 4.6 now in case the forms on them stop working too.
Any other suggestions/help appreciated.
WordPress 4.6 is noticeable faster than 4.5.3, but it’s not a security upgrade, so you are good to wait for 4.6.1, which should not have any email issues
I’m running CF7 on multiple WP 4.6 sites without any problem. This appears to be a server specific issue. Have you spoken to your hosts about it?
I’m having the same issue with Contact form 7 version 4.5 on WordPress 4.6. How do I roll wordpress back to 4.5.3?
Hi again,
Yes, my particular problem had to do with the new server. I had to use the WP-Mail-SMTP plugin to configure the details and now it’s working.
Thanks vasili4 and esmi.
hoving10, which WP-Mail-SMTP plug-in are you using? The ones I’ve looked at are not compatible with WP 4.6
MarhsaSk
Using the WP Mail SMTP plugin. It’s not tested for WP 4.6 but working fine for me.
Thanks, hoving10. Just installed it on one of my sites but it’s not working. Do I need to change the set-up?
Sorry, I’m not an expert but yes you have to put your server’s outgoing e-mail SMTP and port in the plugin’s settings. You can also send a test e-mail from that page. Good luck!
@vasili4 the pluggable.php work for me. Thank you.