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

Class MailKitMailProvider

A MailProvider implementation using ).

Inheritance
System.Object
MailProvider
MailKitMailProvider
Inherited Members
MailProvider.Instance()
Namespace: DotNetNuke.Services.Mail
Assembly: DotNetNuke.dll
Syntax
public class MailKitMailProvider : MailProvider

Constructors

| Improve this Doc View Source

MailKitMailProvider()

Initializes a new instance of the MailKitMailProvider class.

Declaration
public MailKitMailProvider()
| Improve this Doc View Source

MailKitMailProvider(Lazy<ISmtpOAuthController>)

Initializes a new instance of the MailKitMailProvider class.

Declaration
public MailKitMailProvider(Lazy<ISmtpOAuthController> smtpOAuthController)
Parameters
Type Name Description
Lazy<ISmtpOAuthController> smtpOAuthController

The SMTP OAuth controller.

Properties

| Improve this Doc View Source

SupportsOAuth

Gets a value indicating whether this provider supports OAuth authentication to the SMTP server.

Declaration
public override bool SupportsOAuth { get; }
Property Value
Type Description
System.Boolean
Overrides
MailProvider.SupportsOAuth

Methods

| Improve this Doc View Source

SendMail(MailInfo, SmtpInfo)

Sends an email.

Declaration
public override string SendMail(MailInfo mailInfo, SmtpInfo smtpInfo = null)
Parameters
Type Name Description
MailInfo mailInfo

Information about the message to send.

SmtpInfo smtpInfo

Information about the SMTP server via which to send the message.

Returns
Type Description
System.String

if the message send successfully, otherwise an error message.

Overrides
MailProvider.SendMail(MailInfo, SmtpInfo)
| Improve this Doc View Source

SendMailAsync(MailInfo, SmtpInfo, CancellationToken)

Sends an email.

Declaration
public override async Task<string> SendMailAsync(MailInfo mailInfo, SmtpInfo smtpInfo = null, CancellationToken cancellationToken = null)
Parameters
Type Name Description
MailInfo mailInfo

Information about the message to send.

SmtpInfo smtpInfo

Information about the SMTP server via which to send the message.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task<System.String>

if the message send successfully, otherwise an error message.

Overrides
MailProvider.SendMailAsync(MailInfo, SmtpInfo, CancellationToken)

Extension Methods

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