Class SmtpEmailSender
Used to send emails over SMTP.
Inheritance
System.Object
SmtpEmailSender
Implements
ITransientDependency
Assembly: Volo.Abp.Emailing.dll
Syntax
public class SmtpEmailSender : EmailSenderBase, ISmtpEmailSender, IEmailSender, ITransientDependency
Constructors
SmtpEmailSender(ISmtpEmailSenderConfiguration, IBackgroundJobManager)
Declaration
public SmtpEmailSender(ISmtpEmailSenderConfiguration smtpConfiguration, IBackgroundJobManager backgroundJobManager)
Parameters
Properties
SmtpConfiguration
Declaration
protected ISmtpEmailSenderConfiguration SmtpConfiguration { get; }
Property Value
Methods
BuildClientAsync()
Declaration
public Task<SmtpClient> BuildClientAsync()
Returns
Type |
Description |
Task<SmtpClient> |
|
SendEmailAsync(MailMessage)
Declaration
protected override Task SendEmailAsync(MailMessage mail)
Parameters
Type |
Name |
Description |
MailMessage |
mail |
|
Returns
Overrides
Implements
ITransientDependency
Extension Methods