authentication or decryption has failed when sending mail to GMail using SSL

后端 未结 7 1787
栀梦
栀梦 2020-12-09 05:42

I\'m referring to this guide on C# SMTP mail.

Here is my code:

MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient(\"smtp.gm         


        
7条回答
  •  难免孤独
    2020-12-09 06:33

    Do you need to send securely with SSL? You could remove this statement SmtpServer.EnableSsl = true; which would not require the SSL cert.

提交回复
热议问题