C# Class Dlp.Framework.MailService

Mail service utility.
Inheritance: IMailService
Exibir arquivo Open project: stone-payments/Dlp.Framework

Public Methods

Method Description
SendEmail ( IMailServerConfiguration mailServerConfiguration, IMailContent mailContent ) : void

Sends a mail message.

SendEmailAsync ( IMailServerConfiguration mailServerConfiguration, IMailContent mailContent ) : void

Sends a mail message async.

Private Methods

Method Description
SendEmail ( IMailServerConfiguration mailServerConfiguration, IMailContent mailContent, bool isAsync ) : void

Method Details

SendEmail() public method

Sends a mail message.
public SendEmail ( IMailServerConfiguration mailServerConfiguration, IMailContent mailContent ) : void
mailServerConfiguration IMailServerConfiguration The mail account and smtp configuration.
mailContent IMailContent The mail message content.
return void

SendEmailAsync() public method

Sends a mail message async.
public SendEmailAsync ( IMailServerConfiguration mailServerConfiguration, IMailContent mailContent ) : void
mailServerConfiguration IMailServerConfiguration The mail account and smtp configuration.
mailContent IMailContent The mail message content.
return void