使用 OAuth 发送电子邮件
我正在尝试使用 oauth 凭据通过 gmail 发送电子邮件。 我似乎无法在框架中找到任何 smtp 类,或者使用 oauth 访问令牌的开源替代方案。
我在 Google 开发者网站 使用 OAuth 的 Gmail IMAP 和 SMTP - 概述 和 < a href="http://code.google.com/apis/gmail/oauth/protocol.html" rel="noreferrer">使用 OAuth - 协议的 Gmail IMAP 和 SMTP,但我不确定该找谁实施它。
- 是否有任何开源类支持发送通过 oauth 凭据进行身份验证的电子邮件?
- 是否有任何包装器可以帮助编写自定义 smtp 调用?
谢谢
I am trying to send an email through gmail using oauth credentials.
I cannot seem to find any smtp class in the framework, or open source alternatives that work with oauth access token.
I found these references on google developer's website Gmail IMAP and SMTP using OAuth - Overview and Gmail IMAP and SMTP using OAuth - Protocol, but I am not sure who to implement it.
- Are there any open source classes that support sending emails that are authenticated by oauth credentials?
- Is there any wrapper that helps write custom smtp calls ?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以在 System.Net.Mail 命名空间中使用 SmtpClient 。
此问题详细介绍了如何操作:通过 GMail 和 .NET 4 发送电子邮件
I think you can just use SmtpClient in the System.Net.Mail namespace.
This Q covers how to do it in detail: Sending Email via GMail and .NET 4