How to Send Email with WordPress from GoDaddy (Windows Hosting)


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:

Failed to send your 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

  1. 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.
  2. 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.
  3. In the WordPress administration console, click “Settings”.
  4. Click the Email link under “Settings” (or the equivalent for Cimy). Enter the following data:
    1. From Email: “yourusername@domain.com” (without the quotes). This must be your GoDaddy hosted e-mail account.
    2. 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>.
    3. Mailer: Choose “Send all WordPress emails via SMTP”. Do not choose the “…PHP mail() function…” because it won’t work.
    4. 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).
    5. SMTP Port: 25 (default for most SMTP servers).
    6. Encryption: Choose “No encryption”. (I hope you aren’t sending sensitive data!)
    7. Authentication: Choose “No: Do not use SMTP authentication”.
    8. Click the Update Options button. You will be taken to the General Settings tab.
    9. 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.
    10. Click the Send Test button.
    11. If you did everything correctly, you should see the following screen:

E-mail test successful

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

contact form 7, email, WordPress

  1. #1 by Mario on June 3, 2009 - 8:12 AM

    Andy,

    By the way, the e-mail address you provided me with is invalid. I tried e-mailing you back and my message bounced.

  2. #2 by nathan on June 3, 2009 - 11:37 PM

    great work around, but when a user enters a gmail.com address on the contact form, the error appears every time.

  3. #3 by Kevin on June 7, 2009 - 10:38 PM

    Hi,
    My blog is hosting in Godaddy too, windows hosting package, running off of IIS7. However, I can not setup permalinks with format:
    /index.php/%year%/%monthnum%/%postname%/

    There are blank pages when I config with this format.

    I saw your blog – angstrey.com is successfully to fixed this problem. If you can, please show me how to fix it.
    Thanks webmaster.

  4. #4 by Mario on June 7, 2009 - 10:46 PM

    Go to to the “Settings” tab. Then “Permalinks”. Choose “Custom Structure“. This is what I’m using for my blog:
    /index.php/%year%/%monthnum%/%day%/%postname%/

    You have:
    /index.php/%year%/%monthnum%/%postname%/

    I’m not a WordPress expert, but hopefully this helps.

  5. #5 by Kevin on June 7, 2009 - 11:02 PM

    Mario,
    The below structures dont work with me:
    /index.php/%year%/%monthnum%/%day%/%postname%/
    and
    /index.php/%year%/%monthnum%/%postname%/
    and
    /index.php/archives/%post_id%
    But it work good with default structure:
    http://insurelib.adpubnet.com/?p=123
    I dont know why there are appear these problems.
    My blog demo here: http://insurelib.adpubnet.com
    Im trying to fix it, please tell me how to fix it if you can.
    Thank Mario

  6. #6 by Ahmad Bagadood on June 10, 2009 - 3:43 AM

    Thank you Thank you Thank you

    I’ve struggled with this issue for far too long until i stumbled upon your comment (http://angstrey.com/index.php/2009/04/22/how-to-send-e-mail-with-wordpress-from-godaddy-windows-hosting/comment-page-1/#comment-%3C?php%20comment_ID()%20?%3E).

    You should make a dedicated post for this comment. Stupid from field!

    Thank you again :)

  7. #7 by cydney on June 19, 2009 - 4:31 PM

    I have yahoo web hosting and i am starting to believe this is the problem.

    nothing i have tried works.

    But for “The SMTP debugging output is shown below:”

    i see nothing

    Is there any know work around for yahoo. i have tried both yahoo’s smtp reccomendations and yours

  8. #8 by Matthew Connors on June 27, 2009 - 4:08 PM

    Hey Thanks For The Great info – Took Me 3 hours to work this one out, as theres a lot more to it, then just whats above…..

    But what is above is so important

    You actually don’t need the old version of Contact 7, the new one works—If you cant get it working you need the to activate askimet and make the askimet tag changes as per the wordpress site on askimet

    You need other plugins Contact Form 7, Really Simple Captcha and WP-Mail-SMTP

    If your on Godaddy or similar and getting the red box server error Ive very briefly outlined the process at http://www.mcomarketing.com/?page_id=420

    But hey you could not have done it without the info above…. so big cheers for this great resource

  9. #9 by rick on July 1, 2009 - 1:05 PM

    omg you rock! thank you for this useful tidbit. i was pulling my hair out with this stupid godaddy thing.

  10. #10 by Alissa on July 5, 2009 - 9:54 PM

    I am a complete amateur at this. So chances are I can’t make this work. I too am using godaddy hosting with wordpress. I did manage to do the test email, and that was successful, but when I use the contact form I still get the box with the red outline saying that the email didn’t go through. Any suggestions?

Comments are closed.