Class CoreMailProvider
A MailProvider implementation using the original core DNN logic (via
Namespace: DotNetNuke.Services.Mail
Assembly: DotNetNuke.dll
Syntax
public class CoreMailProvider : MailProvider
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> |