Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've developed an application in asp.net MVC.

My application sends a mail using my smtp server.

It works fine in my local PC/network, But when I send mail using my web server (my website is hosted in godaddy.com), I get the following error:

Error: Insufficient permissions for setting the configuration property 'port'. (D:\Hosting\6295866\html\web.config line 177)

My web.config file settings are as follow:

      <smtp from="vikas.patel@sufalamtech.com" deliveryMethod="Network">
        <network host="mail.sufalamtech.com" port="2626" defaultCredentials="false" password="mypassword" userName="vikas.patel@sufalamtech.com" />

My SMTP server use the 2626 port to send email.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

To send mail via GoDaddy, I think you need to send via their SMTP server address relay-hosting.secureserver.net on port 25, and make sure you have a valid from address.


share|improve this answer
Thanks, I've logged a ticket/question to DoDaddy, I think they block the port for security reason. –  Vikas Jul 6 '10 at 13:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.