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.
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:
- 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)
- 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. - 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.
- Click the Save button.
- 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.


#1 by Ross on July 27, 2009 - 3:01 AM
Mario, I can’t begin to say what a huge help your posts were on using Contact Form 7 and SMTP with godaddy. I was going through exactly the same problem, and I thought it was a conflict between the current version of Wordpress, my theme, and the contact form plugin (of which I tried many).
I just checked and everything is working perfectly – huge thanks!
Ross
#2 by Mario on July 27, 2009 - 7:51 AM
Hi Ross, thank you so much for contacting me and letting me know my posts helped you. I’ve been humbled by the number of responses I’ve received on my posts about WordPress and its related e-mail issues with GoDaddy.
#3 by Ziv on July 28, 2009 - 5:25 AM
Thank Mario
I must tell you something really weird:
I am using wp 2.8.2 + contact form7 on a shared godaddy (awful) server
Yesterday I followd the instructions of your previous post and it worked for me.
Today, it did not work for me (red frame error message) although i did NOT change anything since yesterday.
However, today I followed the instructions of the follow up post (the post on this page) and again… it works for me!
So… first I would like to thank you for the usful info.
Secondly, I would like to ask you 2 questions:
A. how can it be that yesterday it worked fine and todays the VERY SAME settings did not work?
B. can you demonstrate how to use the message body code so that i will get my emails WITH other field that i have in the form (not only name, email, message)
Again….
Many thanks
Ziv
#4 by Mario on July 28, 2009 - 4:07 PM
Hi Ziv,
Thank you for contacting me. I’m glad the follow-up post also helped you. I am still using WordPress 2.7.1. I haven’t tried to upgrade yet. I also noticed that Contact Form 7 version 2.0 is already available. I haven’t upgraded my installation of the plug-in.
Now, as for your questions, I’m going to include them here again:
> A. how can it be that yesterday it worked fine and todays the VERY SAME settings did not work?
I am sorry, but I don’t know. I would have to see your settings before I could provide any useful feedback. If the form is working now, then I wouldn’t worry about it.
> B. can you demonstrate how to use the message body code so that i will get my emails WITH other field that i have in the form (not only name, email, message)
This is very simple. You might notice that in the code for the form, there are fields such as [text* your-name], [text* your-email], [text* your-message], [text your-subject]. In the message body you would like to receive, all you do is enclose the name of the field with square brackets []. For example, in my above post, I don’t have the subject line included in the body of my contact form results. So I added it just now as follows:
Name: [your-name]
E-mail: [your-email]
Subject: [your-subject]
Message:
[your-message]
The field in the form’s “template” is [text your-subject]. The field name here is your-subject. In the message body, you wrap it with square brackets in this manner [your-subject].
When you add a field with Contact Form 7’s “generate tag” tool, it will ask you for the field’s name. Supply a meaningful name, such as “fav-color” or “favorite-color” for “Favorite Color” instead of the cryptic alphanumeric name it provides for you. It will make it easy for you to figure out what each field stands for. My above examples (in comment and post) are using the default names provided by Contact Form 7. For example, the captcha field isn’t very meaningful. I didn’t change it at the time I started using Contact Form 7 because I was a first-time WordPress user. I’ve had this blog since April this year.
I hope this helps.
#5 by aurelie on August 16, 2009 - 2:38 PM
Hi Mario– many thanks for the solutions you’ve provided. I have implemented them all and have resolved the SMTP issue (I am running WP 2.8.4 on a shared GoDaddy server, using a heavily modified CorpBlue theme). I am now able to send test messages successfully (though they are on a bit of a delay, which is okay for now). I have followed your instructions on this page for changing the To/From/Subject/Message Body fields and am still receiving the red “Failed to Send” error message. I have tried removing my one generated tag (“select country”) as well as the CAPTCHA, and still no success. I did this all about 14 hours ago and re-tested today. Do you have any other tips or tricks?
#6 by Mario on August 17, 2009 - 7:37 AM
Hi Aurelie,
If you are receiving the red border, there’s still a SMTP issue. I am still using WP 2.7.1, so I don’t know if your issue has to do with the new version. The best option I can offer to you is to let me see your settings for WP-SMTP and Contact Form 7 (including code for the form). I hope you feel comfortable doing that. You can e-mail me a screen shot at angstrey at hot mail dot com (hot mail is one word).
One quick check: make sure that the “From:” field in the WP-SMTP plugin settings is set to your GoDaddy e-mail account. For example, mine is set to webmaster@[my website's domain name]. The problem is, if your test is successful, then maybe this isn’t the issue.
#7 by fusyu on August 20, 2009 - 11:03 PM
Dont work…………………………………………
Same not change…….
wkwkwk
why why why why………………..
#8 by Mario on August 21, 2009 - 7:44 AM
> “Dont work………………………………………… Same not change”
What version of WordPress and Contact Form 7 are you using? Is your hosting company GoDaddy? Did you try the suggestions in the related article “How to send e-mail with WordPress from GoDaddy”?
Thanks.
#9 by Christopher Lewis on August 21, 2009 - 4:12 PM
Mario,
As most above had said, thank you for all of your work and insight. I, like Aurelie, am working with WP 2.8.4 on GoDaddy, have followed both of your diagnostic posts, but am still having the red border issue. Can I forward my screen shot to you for evaluation?
Christopher Lewis
#10 by Tony on August 21, 2009 - 8:24 PM
This didn’t work for me and I’m running 2.8.4 and I have no idea why?
SMTP is working with the “true” from the previous SMTP fix and I get the test email.
Maybe it’s something in the Contact Form 7?