简体   繁体   中英

Send email using OAuth

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.

  1. Are there any open source classes that support sending emails that are authenticated by oauth credentials?
  2. Is there any wrapper that helps write custom smtp calls ?

Thank you

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM