Category: General

GMail, GoDaddy and Me Giving Up

In one of my previous posts, I have explained how to send mail through GMail using ASP.NET C#. Well, for me it all looked good until I wanted to upload the application to GoDaddy server. I have Windows hosting plan there, and wanted to set the app for test purposes on it.

I’ve uploaded to GoDaddy both the application and the Web service I use to send mail. In service Web.config, the settings were something like this:

        <smtp from="TEST" >
            <network host="" port="587" userName="" password="somepassword" defaultCredentials="false" />

But, I received the error message:
System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.Configuration.ConfigurationErrorsException: Insufficient permissions for setting the configuration property ‘port’.

So, I’ve Googled the exception in ‘GoDaddy context’ and learned that you can’t send e-mail through Gmail account using GoDaddy servers. Apparently, they want to prevent using their servers for sending spam. But, it wasn’t all so easy to understand it since I found some (for me) pretty vague answers. At first, I was convinced that you CAN send e-mails through GMail, because I found posts explaining how – but it just didn’t work for me! I even spoke to some friends who were sure this was working some time ago, when they needed to set up mail sending on GoDaddy. I tried several different configurations, but kept getting exceptions, different from the one I mentioned here.

Hours and hours later, I finally decided to give up on trying to use GMail. After all, this was all supposed to be just for testing. (When I make release version, I will buy ‘proper’ hosting.) I’ve created new e-mail account on my domain (also hosted on GoDaddy). I found out that, if you have the shared hosting plan, you must use their on port 25. It’s important to say that this server doesn’t support SSL. So, in C# code, instead of

mailClient.EnableSsl = true;

it should be:

mailClient.EnableSsl = false;

In Web.config, the configuration will now be:

      <smtp from="TEST" >
        <network host="" port="25" userName="someuser@yourdomain" password="somepassword" defaultCredentials="false" />

Make sure to use the e-mail from your domain as sender, not the GMail! Also, set both username and password! I’ve found couple of comments from GoDaddy support team, explicitely saying you DON’T have to use credentials when configuring However, I couldn’t make it all work until I’ve set both username and password.

I must say that it took me a while to figure this out. I haven’t even thought of contacting GoDaddy support since I’ve been doing it a lot in last couple of months on various subjects and I’m pretty much tired of their responses ‘within 12 hours’. This is my first time trying to send mail from their server and it was all new to me, but I’ve discovered that this is a well known problem.

Hope this post will help people not to waste their precious time on a configuration issue like this.

I’m a Mentor! :)

Couple of weeks ago, I have joined Women’s TechConnect Mentoring Program as a mentor and have been paired with a young woman from Rwanda to be my protégé.

Women’s TechConnect (WTC) brings together women in IT from all around the globe. Its goal is support women career development and help them to build confidence in IT industry.


The program doesn’t really take too much time, approx 2 hours per month, for 12 months. During that period, me and my protégé are supposed to:

  • communicate via email once every other week
  • talk by phone or Skype at least once a month
  • participate in a monthly online webinar.

We will get weekly e-mails from NetHope, suggesting the topics for discussion, which should help us in the process, since it is all very new to us.

I’ve never been mentoring anyone, especially not long distance. That is why I find the whole program very exciting and challenging, and hopefully, a lot of fun!

P.S. If you are a woman, interested in IT and find this program interesting, you can read more about it here.