Class SmtpEmailSender
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Emailing.Smtp
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
| Type | Name | Description |
|---|---|---|
| ISmtpEmailSenderConfiguration | smtpConfiguration | |
| IBackgroundJobManager | backgroundJobManager |
Properties
SmtpConfiguration
Declaration
protected ISmtpEmailSenderConfiguration SmtpConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| ISmtpEmailSenderConfiguration |
Methods
BuildClientAsync()
Declaration
public Task<SmtpClient> BuildClientAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><SmtpClient> |
SendEmailAsync(MailMessage)
Declaration
protected override Task SendEmailAsync(MailMessage mail)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.Mail.MailMessage |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |