Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
We have developed the web page on dot net for sending email from website
This was working fine in the local machine and in our servers too.

But when we host it to your server, it’s not allowing to send the email. It’s given the error as "insufficient permissions for setting the configuration property 'port'. "


Below is the error, which comes when we try to send email.

Insufficient permissions for setting the configuration property 'port'. (D:\wwwroot_Fusion\Rollout\web.config line 21)

XML
this code, I am using my web.config:

<system.net>
    <mailsettings>
      <smtp from="abc@gmail.com">
        <network host="smtp.gmail.com" port="587" />
      </smtp>
    </mailsettings>
  </system.net>
Posted
Comments
DamithSL 18-Aug-15 3:47am    
where you hosted this site?

1 solution

Please contact your hoster and let them work out their permissions issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900