C# yandex mail send error 5.5.4 Error: send AUTH command first

前端 未结 5 845
借酒劲吻你
借酒劲吻你 2021-01-15 06:14

I try to send mail using C# and yandex, but I get an error:

Error 5.5.4 Error: send AUTH command first

Here is my code. I try w

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 06:35

    Yandex Mail doesn't support connection without SSL (according to https://yandex.com/support/mail/mail-clients.xml). Try to set EnableSsl to true and use host: smtp.yandex.com, port: 465. If it will not work - try port 25

提交回复
热议问题