UPDATE: Monday, July 20, 2009
Several visitors have contacted me to inform me that after applying my suggestions above, they were still receiving the error message with the red border. Please visit this follow-up post for information on how to possibly fix the problem. Please let me know if it worked for you!
Follow-Up Post: 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.
Well, I have good news: I have solved the problem. Please follow the instructions shown below for configuring WP-Mail-SMTP on your GoDaddy-hosted WordPress installation and then continue to the follow-up post above.
The Problem
My blog is being hosted at GoDaddy.com on their Windows hosting package and it’s running off of IIS 7. This service supports PHP 5, which allowed me to install WordPress. One requirement I had was the ability to have a contact form. I found Contact Form 7, which appears to be a popular WordPress plug-in. I installed and configured the plug-in, but I wasn’t able to send e-mail through it. I received the following error message:

I later found out at the Contact Form 7 developer’s blog that the problem was server-related as indicated by the red border. I googled the solution and found it. Rob Layton posted a very helpful article about how to solve this problem:
http://www.roblayton.net/archive/wordpress-not-sending-emails-anymore-solved/
In short, his solution points to the fact that PHP Mail or SMTP are no longer working after upgrading to a later version of WP. He suggests one of two plug-ins:
I opted for WP Mail.
I tried his recommendations which are detailed in his blog entry, but they didn’t work for me. Below is what I did for my GoDaddy account.
Solution
- Create a new e-mail account using the GoDaddy mail control panel. If you already are using GoDaddy as your e-mail provider, you don’t need to create a new one.
- Install either WP-Mail-SMTP or Cimy Swift SMTP. Since I am not using Cimy Swift SMTP, my instructions apply to WP-Mail-SMTP, but the solution should be fairly similar for Cimy. Then activate the plug-in.
- In the WordPress administration console, click “Settings”.
- Click the Email link under “Settings” (or the equivalent for Cimy). Enter the following data:
- From Email: “yourusername@domain.com” (without the quotes). This must be your GoDaddy hosted e-mail account.
- From Name: type in either your name or the name of your website. This will make the From line of the e-mail read as “From Name” <yourusername@domain.com>.
- Mailer: Choose “Send all WordPress emails via SMTP”. Do not choose the “…PHP mail() function…” because it won’t work.
- SMTP Host: relay-hosting.secureserver.net (do not use the SMTP server that GoDaddy provided you during your e-mail account sign-up. For the record, that is smtpout.secureserver.net).
- SMTP Port: 25 (default for most SMTP servers).
- Encryption: Choose “No encryption”. (I hope you aren’t sending sensitive data!)
- Authentication: Choose “No: Do not use SMTP authentication”.
- Click the Update Options button. You will be taken to the General Settings tab.
- Now click the Email link again. Scroll down to the bottom of the page and type in a valid e-mail address in the To: box under the “Send a Test Email” section.
- Click the Send Test button.
- If you did everything correctly, you should see the following screen:

Continue to follow-up post (Contact Form 7’s “Failed to send your message” error)…


#1 by Rob L on May 8, 2009 - 3:35 PM
It worked!!! this has been a multi-day effort for a crazy contact form- how in the world did you know that your-name had to be taken out but yet I’ve not seen it ANYWHERE?
thanks man, you’re a life saver and I can enjoy my weekend now! You enjoy yours!
Rob
#2 by Mario on May 8, 2009 - 3:48 PM
Excellent! I’m very glad it worked.
I had the same problem as you and I figured it out by trial and error. Plus I know that some SMTP clients cannot recognize a “From:” line in the form “[name]” <email>.
Have a great weekend, too, and have fun with WP!
#3 by Kari on May 14, 2009 - 10:02 AM
You are AWESOME!
I have been working on solving this off and on for weeks and would just get frustrated. I followed your steps in 3 minutes and it works.
Thank you so much!
#4 by Mario on May 14, 2009 - 10:04 AM
Thank you, Kari. I’m glad my blog post helped you. Thanks for contacting me!
#5 by Sam on May 17, 2009 - 10:14 PM
Thanks! That helped me soooooo much.
you rock!
#6 by Steve on May 20, 2009 - 10:45 PM
Hi, Mario.
I hate to write, but I’ve spent (wasted) many days trying to figure out why this spiffy Windows NT server my client’s using hangs when I try to submit my Contact Form 7.
I can send a WP-Mail-SMTP test email just fine, but when I try submit, the swirling “loading” button keeps swirling. I’ve tried uninstalling almost every other plugin, except Askimet.
I have read something about iis servers running in “safe mode” causing problems, and this server is running in safe mode. Might that be the issue with the contact page (listed above in the “website” field).
Thanks in advance for any advice you can give regarding this pesky problem.
#7 by Marc on May 23, 2009 - 10:22 AM
Thank you so much. After a ton of google searches, you were the one with the answer.
Keep up the good work!
#8 by Alexi Akl on May 30, 2009 - 12:22 PM
in my case I had to use SMTP authentication. anyway thanks for the great tutorial
#9 by andy rooney on June 2, 2009 - 5:27 PM
Anyone have a GoDaddy account? I need to migrate my shared servers to a dedicated server and not sure how all of that works.
#10 by Mario on June 3, 2009 - 8:09 AM
Andy,
You should contact GoDaddy technical support for assistance but normally what is done is to either obtain a copy of the entire site on a CD or download its contents via FTP and then upload them via the same method to the new server. If your website is database-driven, you also need a backup of the database so that it can be imported in the new server. Plus you also need to make sure your new server supports the server technologies that your former host has.