Contact form 7 not working

I have WordPress v3.9.2 installed on HostGator. I have installed the Contact Form 7 plugin. When I try to send an email, I get the following error:

enter image description here

In Chrome Dev Tools I can see that it makes an AJAX call that returns the following information:

enter image description here

To fix this problem I opened the HostGator error log but it is empty. Does anyone have any suggestion on how I can fix this problem and get Contact Form 7?

+3


source to share


2 answers


I got it working by doing the following two things:



  • Deactivating the WP-Mail-SMTP plugin, which "Resets the wp_mail () function to use SMTP instead of mail () and creates an options page to manage settings."

  • Creating a From field in the Contact Form 7 plugin has my website domain. For example contactform@mydomainame.com

+4


source


According to the original wpcf7 code, there are two possible reasons for this message:

  • The message was found to be spam.
  • The message could not be delivered to the outgoing mail server (the one active on your own server).


Unfortunately, there is no way to tell what actually happened, but change the source code and try to generate debug output.

The first thing to do is find out if its capability is 1 or 2, and then (if it is 2) remove the sign @

before calling the call wp_mail()

in, WPCF7_ContactForm->compose_mail()

or set the parameter WP_DEBUG

to true in your wp-config.php file.

0


source







All Articles