Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Wednesday, July 28th at 3pm PST / 6pm EST. Learn more
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Send Email



I have the below error once I'm sending an email fro the ode in the Plesk hosting 

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions

Please we need a solution!


Best regards,



my code is 

SmtpClient client = new SmtpClient {

   Host = "",

   Credentials = new NetworkCredential("<FULL USERNAME@DOMAIN.COM", ConfigurationManager.AppSettings["password"]),

   Port = 587,

   EnableSsl = true,

   Timeout = 10000