Class SmtpOAuth2Token
An OAuth 2.0 access token for SMTP authentication via the XOAUTH2
SASL mechanism. A type-forward subclass of
SaslOAuth2Token. Existing SMTP
code and tests reference SmtpOAuth2Token unchanged;
the shared SaslOAuth2Token is used by POP3 and IMAP.
Inherited Members
Namespace: DRIT.Mail.Rfc.Smtp.Auth
Assembly: DRIT.Mail.dll
Syntax
public sealed class SmtpOAuth2Token : SaslOAuth2Token
Constructors
View SourceSmtpOAuth2Token(string, string)
Initializes a new instance of the SmtpOAuth2Token class.
Declaration
public SmtpOAuth2Token(string userName, string accessToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userName | The user name (email address) associated with the token. |
| string | accessToken | The OAuth 2.0 access token. |