Class MailKitMailProvider
A MailProvider implementation using
Inherited Members
Namespace: DotNetNuke.Services.Mail
Assembly: DotNetNuke.dll
Syntax
public class MailKitMailProvider : MailProvider
Constructors
| Improve this Doc View SourceMailKitMailProvider()
Initializes a new instance of the MailKitMailProvider class.
Declaration
public MailKitMailProvider()
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 SourceSupportsOAuth
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
Methods
| Improve this Doc View SourceSendMail(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 |
Overrides
| Improve this Doc View SourceSendMailAsync(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> |