使用C#winform进行Gmail两步验证 [英] Gmail two step authentication in C# winform
本文介绍了使用C#winform进行Gmail两步验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在以C#win形式发送邮件时使用两步验证(Gmail)
我尝试过的方法:
尝试此解决方案
安全性 - 使用smtp.Gmail.com:857在C#中使用SmtpClient,激活Google的2步验证 - Stack overflow [ ^ ]
但它不起作用
How to use two step authentication (Gmail) during sending mail in C# win form
What I have tried:
Try this solution
security - SmtpClient in C# using smtp.Gmail.com:857 with Google's 2 Step Verification activated - Stack Overflow[^]
but it's doesn't work
推荐答案
你需要生成app来自具有两步验证的帐户的密码已激活
您应该从这里生成应用密码
生成应用密码。 [ ^ ]
更多信息
c# - 当发送帐户使用双因素身份验证时,如何使用Gmail和SmtpClient发送电子邮件? - 堆栈溢出 [ ^ ]
如果您有任何疑问,请告知我们关注同样的问题。
You need to generate app password from the account which has two step authentication is activated
You should generate app password from here
Generate App Password.[^]
Formore info
c# - How do I send an email with Gmail and SmtpClient when the sending account uses two factor authentication? - Stack Overflow[^]
Let me know if you have any query or concern for same.
这篇关于使用C#winform进行Gmail两步验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文