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 Jeff Portaro on November 16, 2009 - 10:15 PM

    I just got off the phone with tech support at GoDaddy and they had no clue as to what I was trying to do. Your walk through solved a problem that they couldn’t. Thank you so much.

  2. #2 by Cole on December 4, 2009 - 12:32 PM

    Thanks for all your hard work on this information. I tried everything using Contact Form 7 and the WP SMTP plugin but could never get this to work. All the debugging messages indicate that the SMTP server would not respond. At this point, it’s not worth any more of my time to investigate and troubleshoot this so I’ll come up with a different method for offering contact information on my blog. Just thought I would let you know that it does not appear to be a 100% effective solution for creating a contact form that sends SMTP mail hosted on GoDaddy. Thanks!

  3. #3 by James on December 9, 2009 - 9:14 AM

    You are a saint. Thank you so much for this. Btw, I’m still using [your-name] “” in the from section on CF7 and it works fine. Godaddy windows hosting, WP2.8.6

  4. #4 by marc on December 18, 2009 - 6:04 PM

    The contact form I have setup following your directions works great, except the Reply-To is not working still. No replies are going through. Anyone else have this problem?

    Thank you

  5. #5 by Mario on December 18, 2009 - 8:51 PM

    Marc,

    What did you enter in the Reply-To field? Make sure you enter exactly what I suggested.

  6. #6 by marc on December 18, 2009 - 11:34 PM

    Thanks for the quick response, I believe I entered it exactly as you have it in the ‘Additional Headers’ area

    Reply-To: [your-email]

  7. #7 by Nate on December 19, 2009 - 4:10 PM

    I’ve tried your suggestions to try and make Contact Form 7 work. I have WP SMTP Mail working correctly, but every time I try to test the form, the message fails to send.

    Is there a way to figure out the reason the message is failing?

  8. #8 by Mario on December 19, 2009 - 8:12 PM

    Nate and Marc,

    What version of WordPress and ContactForm 7 are you using?

  9. #9 by marc on December 20, 2009 - 3:55 AM

    WordPress 2.8.6
    CF7 2.0.7

  10. #10 by Mario on December 20, 2009 - 9:13 AM

    Marc,

    I am using WordPress 2.8.4. I haven’t upgraded to version 2.9, which is the latest. My version of ContactForm 7 is the same as yours. Could you e-mail me screen shots of both settings for WP-SMTP and Contact Form 7? My e-mail is angstrey at hot mail (one word) dot com. It’s possible that there’s a compatibility issue between your version of WP and CF7. Until I upgrade to WP 2.9, I won’t be able to figure out how to fix the problem. If you don’t mind waiting, I won’t be able to assist you until tomorrow night.

(will not be published)