What caused the Socket Exception while sending email from Console application?

前端 未结 5 2103
走了就别回头了
走了就别回头了 2021-01-17 17:41

I\'m trying to write a basic console app that will send an email. The problem is that I keep getting the Socket exception:

An attempt was made to acc

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-17 18:20

    I had very similar situation once and it turned out that the antivirus was just blocking that port. Your possible options are listed here: http://social.msdn.microsoft.com/Forums/br/transactsql/thread/c083c2c6-f74e-42cd-a811-4329ff7aa5f1

提交回复
热议问题