cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can not send email via smtp.gmail.com port 587 on Windows Web Hosting with .net code

I can not send email from my .net code below

Host = "smtp.gmail.com",
Port = 587,
EnableSsl = true,
UseDefaultCredentials = false,
DeliveryMethod = SmtpDeliveryMethod.Network,
Credentials = new NetworkCredential(gmailAccount, gmailPassword)

 

it works on my local testing but when deployed to Godaddy, it can not reach the smtp.gmail.com

 

Can someone help?

0 REPLIES 0