Reputation: 45
All of my sites using Contact Form 7 has stopped working on submit. The response container "wpcf7-mail-sent-ng" says "An error occurred while sending the message. Please try again later."
I get the following feedback:
into:"#wpcf7-f112-o1"message:"An error occurred while sending the message. Please try again later."status:"mail_failed"
Any ideas how to resolve this? Kind of a big deal as a lot of my customers currently use CF7 on their sites.
Thx
EDIT
I have the same issues, which started after the WordPress 4.9.2 automatic update. I have tested sites that are running the same release of CF7 but on another version of WordPress, and there are no issues then. Seems like a WordPress problem right?
Also, nothing in the console, and I get the same message in the feedback under the Network tab in devtools.
Upvotes: 2
Views: 13196
Reputation: 45
The problem is now resolved!
Turns out my hosting company hade issues with php mail()
To be sure this doesnt happen in the future you can follow Priyanka Modi's advice above and use WP Mail SMTP PLugin. Yet another plugin, but it works great.
Upvotes: 0
Reputation: 1624
For this issue, you can follow below steps,
These fixes include:
change the wordpress contact form area from section ([your-name] <[your-email]>) to [email protected].
add all fields inside
or
Use “WP Mail SMTP plugin”. Then you configure your mail server details.
Once you have sent an email “Thank you for your message.” Possible to refresh the automatic page.
For me personally, I tried the first two options, but it only started working and sending emails after I installed the WP Mail SMTP plugin, and configured it to use the Gmail SMTP server (which required that I created a gmail account, as you need to provide a username and password when connecting to Gmail's server).
Upvotes: 10