hi I'm trying send email , but I just get this error :
an attempt was made to access a socket in a way forbidden.
I'm using smtp.gmail.com
I search about this and I find it's bc firewall don't allow to use port 587
I tried to add Inbound rules
in firewall , but did not answer.
so anyone know how can enable port 587 to send email ???
if need send image about anything pls tell me .
CodePudding user response:
If you are calling from your application to the gmail server. That would be an outbound rule so you need to add a outbound exception to the firewall.