1
votes

All of my sites using Contact Form 7 has stoped 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, wich 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.

2
any console errors, errors in the debug mode?Samvel Aleqsanyan
Get this: {into: "#wpcf7-f112-o1", status: "mail_failed",…} into : "#wpcf7-f112-o1" message : "Ett fel inträffade när meddelandet skulle skickas. Var god försök senare." status : "mail_failed"Johan Carlsson

2 Answers

7
votes

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.

WordPress Mail SMTP Plugin

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).

0
votes

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.