• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IOAuth2SmtpClient

A contract specifying the ability to authenticate an SMTP client with an OAuth 2 endpoint.

Namespace: DotNetNuke.Services.Mail.OAuth
Assembly: DotNetNuke.dll
Syntax
public interface IOAuth2SmtpClient

Methods

| Improve this Doc View Source

Authenticate(String, String)

Authenticates this SMTP client with the given OAuth credentials.

Declaration
void Authenticate(string username, string token)
Parameters
Type Name Description
System.String username

The username.

System.String token

The auth token.

| Improve this Doc View Source

AuthenticateAsync(String, String, CancellationToken)

Authenticates this SMTP client with the given OAuth credentials.

Declaration
Task AuthenticateAsync(string username, string token, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.String username

The username.

System.String token

The auth token.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task

A indicating completion.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS