c# SmtpClient class not able to send email using gmail

前端 未结 7 1103
-上瘾入骨i
-上瘾入骨i 2020-11-27 16:24

I\'m having trouble sending email using my gmail account. Im pulling my hair out.

The same settings work fine in Thunderbird.

Here\'s the code. I\'ve also tr

7条回答
  •  被撕碎了的回忆
    2020-11-27 17:07

    I can verify that setting UseDefaultCredentials to false MUST be done before the NetworkCredentials is created. I had the same problem.

提交回复
热议问题