Contact Form 7’s “Failed to send your message” error


UPDATE: August 27, 2009

If your website is being hosted on GoDaddy and you are using WordPress version 2.8.x (2.8.4 being the latest at time of writing) and the latest version of Contact Form 7 (2.0.1 at time of writing), you are probably visiting this blog because you are getting the annoying “failed to send your message” error (with the red border) in your contact form.

I just found out this evening that after upgrading to Contact Form 7 2.0.1 and WordPress 2.8.4, my contact form won’t send e-mails anymore. When I wrote this post back in April 2009, I was using WP version 2.7.1.

This post will help you to finally fix this problem. If you haven’t done so, please install the WP-Mail-SMTP plugin and then read my original article on the issue.


This post is a follow-up article to my post titled “How to Send Email with Wordpress from GoDaddy”.

Several visitors to my site have informed me that after trying out my suggestions in the aforementioned post, they are still receiving the following error message:

Failed to send your message. Please try again later or contact administrator by other way.

Failed to send your message. Please try again later or contact administrator by other way.

If you have applied the suggestions found in the “How to Send Email with Wordpress from GoDaddy” post and still receive the error message above, please try the following:

  1. Go to Contact Form 7’s settings (Tools -> Contact Form 7 (version 1.x)) or the new “Contact” menu (Contact Form 7 version 2.x)
  2. Make sure that you enter “[your-email]” (without the quotes) in the “From:” field.
    From: field:  Enter the same e-mail address shown in the “From:” line of your WP-Mail-SMTP settings. For example, let’s pretend I am using “example@example.com” in the “From:” line of my WP-Mail-SMTP settings. I must enter the same e-mail address in Contact Form 7’s counterpart. Contact Form 7 will have [your-name] “<[your-email]>”. This won’t work for you.
  3. Very Important: Contact Form 7 will have a field called “Additional headers:”. Enter (literally) “Reply-To: [your-email]“, without the quotes. The [your-email] placeholder is the same field used inthe Contact Form 7’s form. Contact Form 7 will replace it with the e-mail the user supplies in the form. This header will allow you to reply to the sender directly without copying their e-mail address manually by you.
  4. Click the Save button.
  5. Open the Contact Form in your blog and you should finally see the sweet “Your message was sent successfully. Thanks.” green bordered text.

You will notice that the e-mail will take several minutes to arrive in your inbox. Take heart, it will arrive.

The “To:” field is the e-mail address where you would like to receive the results. The value I am using is my personal e-mail account. Also, make sure that you do include the person’s e-mail address in the form’s results so that you are able to have a copy of the person’s e-mail in hand.

I am going to share with you the code I’m using for my website’s contact form. Use it as a starting point. Note that it uses the Really Simple CAPTCHA plug-in for Contact Form 7.

“Form” Section

<p>Your Name:<span class="required">*</span><br />
    [text* your-name] </p>

<p>Your Email:<span class="required">*</span><br />
    [email* your-email] </p>

<p>Subject<br />
    [text your-subject] </p>

<p>Your Message<span class="required">*</span><br />
    [textarea* your-message] </p>

<p>
   [captchac captcha-897 size:m fg:#000000 bg:#ffffcc]
   Type in the Above Code<br />
   [captchar captcha-897]
</p>

<p> </p>
<p>[submit "Send"]</p>

“Mail” Section

  • To: field: The e-mail address that will receive the results. This can be any valid e-mail address, such as your GMail or Hotmail e-mail address. For example, “example@example.com”, without the quotes.
  • From: field: Enter the same e-mail shown in the “From:” line of the WP-Mail-SMTP settings [your-email]“, without the quotes. This field has been discussed above.
  • Subject: field: Enter “[your-subject]“, without the quotes.
  • Additional headers: literally type in “Reply-To: [your-email]“, without the quotes. Very important because this will allow you to reply to the person directly!
  • In the Message Body field, copy and paste the following code:
Name: [your-name]
E-mail: [your-email]

Message:
[your-message]

When you are done, click the Save button. You should end up with a form similar to mine, located here.

Bookmark and Share

contact form 7, email, WordPress

  1. #1 by Gillian on January 1, 2010 - 6:17 PM

    I was pulling my hair out over this issue. Thanks for putting together such an easy-to-follow solution! The two forms on my site are now up and running, and I’m seeing green instead of red.

  2. #2 by Krista Abbott on January 3, 2010 - 1:34 PM

    Thank you for this post. It solved my Contact Form 7 troubles with easy step by step instructions. Awesome service to the blogging community. You Rock!

  3. #3 by choss on January 7, 2010 - 2:57 AM

    Here’s my problem, when I add a form, it’s really really inconsistent. Sometimes send the form, it will say “Message successfully sent” in green, but I’ll never get the email. I would say this happens 1/4 attempts. This is really frustrating, because I never know how many people submit forms and told they are successful, but I can’t reply back to them because I don’t actually get the email. So any ideas why, do you have a 100% sucesss rate on your end?
    I’m currently running Godaddy with Linux Deluxe plan. I have Wordpress 2.9.1 installed, with Contact Form 7 version 2.1

  4. #4 by kelly on January 10, 2010 - 2:26 PM

    thanks for these instructions, but like the comment before me, after successfully sending test emails with the smtp plugin, my form still does not work after following these posts. any other ideas? another article is suggesting that this plugin uses the mail function instead of wp_mail, maybe that’s it? another one is suggesting that the latest contact form 7 plugin has issues and to use an older version…

  5. #5 by Mario on January 10, 2010 - 4:58 PM

    I haven’t had any problems that I know of. You can try my contact form. It works as far as I know, even with the latest version of CF 7. I am still using WP 2.8.4. What version are you using? Did you try all of my suggestions?

  6. #6 by Kevin Hester on January 11, 2010 - 8:51 PM

    Just curious if you can answer a question for me. I have followed all your tips and the form works fine. But when I put in my godaddy email then the email doesn’t actually go through. Any chance there is a fix.

    Great job.
    Kevin

  7. #7 by John Moore Williams on January 16, 2010 - 4:47 PM

    thank you so much for this fix! very easy and totally functional.

  8. #8 by Jen on January 20, 2010 - 10:51 PM

    thank you so much for this tutorial. i was really starting to lose my mind.

  9. #9 by Eric B on January 21, 2010 - 9:03 PM

    Yea I had the same trouble sending email. I used your solution almost exactly and it works great. The only difference is I moved my hosting provider from Godaddy but still wanted to use their Mail service. So i used this godaddy article: http://help.godaddy.com/article/363 to setup the mail settings. (also dont forget to change the SMTP host to smtpout.secureserver.net (or whatever godaddy says it is in the webmail) and I used SSL to encrypt the stuff, It’s safer and works even if you don’t host with Godaddy anymore

  10. #10 by Bert Hixson on January 25, 2010 - 3:37 PM

    Thanks for the info; your solution worked for me. I have a site I am building for a client that has hosting on Yahoo. So it appears that it is not just GoDaddy or Gmail.

    The Contact Form did not work at first but thanks to your post, it does now.

(will not be published)