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

Class CoreMailProvider

A MailProvider implementation using the original core DNN logic (via ).

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

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