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 Zac on January 11, 2010 - 8:56 PM
Hello,
I’m stll having trouble with sending e-mails. I followed the steps above for the test, and it worked fine. Now, when I send to my yahoo or gmail accounts, I’m still getting the same fail message. But when I send to my website email which is intouch@zacsettles.com, it went through successfully.
Any ideas
Zac
#2 by Mario on January 11, 2010 - 9:20 PM
Hi Zac,
You should still be able to send successfully to either Yahoo or GMail. I have a Hotmail account and so far I haven’t had any problems.
If you don’t mind, please send me screen shots of your WP-SMTP and Contact Form 7 settings. This can assist me in spotting what may be different from my settings.
By the way, I’m in the process of upgrading to WP 2.9.1 (I’m using 2.8.4). Let’s see if I end up with the same problem.
Mario
#3 by Mario on January 11, 2010 - 9:28 PM
Zac,
I tried e-mailing you but my message came back… Here’s what I got…
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
zsetles7 at yahoo dot com
#4 by Mario on January 11, 2010 - 10:11 PM
Guys,
I am using WP 2.9.1 and Contact Form 7 2.1 and my contact form works perfectly. If you follow my instructions correctly, you should be able to have WP send e-mail correctly.
#5 by Zac Settles on January 13, 2010 - 9:19 AM
Hey Mario,
Thanks for your response. I will send you screen shots of my WP-SMTP, Contact Form 7 settings. What is the best way to do that? Pics attatched via email?
By the way, I noticed even though I received the message “message sent successfully” when sending to my intouch@zacsettles address, when I check my inbox, there are no messages and I’ve tried several times. But I do receive messages from others, so I know this address is working.
You stated above you sent me a message to my yahoo account, you had a misspelling there, the correct spelling is zsettles7@yahoo.
look forward to your response.
Zac
#6 by Jennifer on January 14, 2010 - 12:08 AM
Just wanted to say this worked flawlessly for me just now. I was all worried. I just followed the steps (I’m in WP 2.9.x) and bada-bing bada-boom… THANKS!
#7 by WoodyC on January 15, 2010 - 9:27 AM
Many thanks for your post. Worked perfectly on our site. Very helpful!
#8 by Ben Gale on January 23, 2010 - 8:34 PM
I am using contact form 7. I have WP 2.9. I am receiving the emails fine. I did what was suggested above. The problem I am having is that when people try to submit their information, it will not accept their info if they have a gmail, yahoo, aol email account. Private domains (@mycompany.com) works great. It seems to be filtering out the free domains to prevent spam, but it is preventing people who I want to contact me from contacting me. What can I do?
#9 by Dani on January 24, 2010 - 6:20 PM
Thanks so much, it worked great for all email issues I had including members not getting password emails!
Dani!
#10 by Klaus Graefensteiner on January 29, 2010 - 5:49 PM
Exactly what I was looking for. Installed WP-Mail-SMTP and the contact form is working now. Thanks for posting this info.