title: Cannot send email in ASP.NET through Godaddy servers
body: <p>I have an ASP.NET application hosted on Godaddy that I want to send email from.  When it runs, I get: <strong>Mailbox name not allowed. The server response was: sorry, relaying denied from your location.</strong> The important parts of the code and Web.config are below:</p>
  
  <pre><code>msg = new MailMessage("accounts@greektools.net", email);
          msg.Subject = "GreekTools Registration";
          msg.Body =
              "You have been invited by your organization to register for the GreekTools recruitment application.&lt;br/&gt;&lt;br/&gt;" +
              url + "&lt;br/&gt;&lt;br/&gt;" +
              "Sincerely,&lt;br/&gt;" +
              "The GreekTools Team";
  
          msg.IsBodyHtml = true;
  
          client = new SmtpClient();
          client.Host = "relay-hosting.secureserver.net";
  
          client.Send(msg);
  
  &lt;system.net&gt;
  &lt;mailSettings&gt;
    &lt;smtp from="accounts@greektools.net"&gt;
      &lt;network host="relay-hosting.secureserver.net" port="25" userName="********" password="*********" /&gt;
    &lt;/smtp&gt;
  &lt;/mailSettings&gt;
  </code></pre>
  
  <p></p>