“An attempt was made to access a socket in a way forbidden by its access permissions” while using SMTP

后端 未结 7 1792
灰色年华
灰色年华 2020-11-29 07:19

I am trying to send an SMTP email when certain values in database crosses its threshold value.

I have already allowed ports 25,587 and 465 in the Windows firewall an

7条回答
  •  青春惊慌失措
    2020-11-29 08:09

    Windows Firewall was creating this error for me. SMTP was trying to post to GMAIL at port 587. Adding port 587 to the Outbound rule [Outbound HTTP/SMTP/RDP] resolved the issue.

提交回复
热议问题