Show / Hide Table of Contents

Class EmailSenderBase

Inheritance
object
EmailSenderBase
NullEmailSender
SmtpEmailSender
MailKitSmtpEmailSender
Implements
IEmailSender
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
Assembly: Volo.Abp.Emailing.dll
Syntax
public abstract class EmailSenderBase : IEmailSender

Constructors

EmailSenderBase(ICurrentTenant, IEmailSenderConfiguration, IBackgroundJobManager)

Declaration
protected EmailSenderBase(ICurrentTenant currentTenant, IEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager)
Parameters
Type Name Description
ICurrentTenant currentTenant
IEmailSenderConfiguration configuration
IBackgroundJobManager backgroundJobManager

Properties

BackgroundJobManager

Declaration
protected IBackgroundJobManager BackgroundJobManager { get; }
Property Value
Type Description
IBackgroundJobManager

Configuration

Declaration
protected IEmailSenderConfiguration Configuration { get; }
Property Value
Type Description
IEmailSenderConfiguration

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

Logger

Declaration
public ILogger<EmailSenderBase> Logger { get; set; }
Property Value
Type Description
ILogger<EmailSenderBase>

Methods

BuildMailMessage(string?, string, string?, string?, bool, AdditionalEmailSendingArgs?)

Declaration
protected virtual MailMessage BuildMailMessage(string? from, string to, string? subject, string? body, bool isBodyHtml = true, AdditionalEmailSendingArgs? additionalEmailSendingArgs = null)
Parameters
Type Name Description
string from
string to
string subject
string body
bool isBodyHtml
AdditionalEmailSendingArgs additionalEmailSendingArgs
Returns
Type Description
MailMessage

NormalizeMailAsync(MailMessage)

Declaration
protected virtual Task NormalizeMailAsync(MailMessage mail)
Parameters
Type Name Description
MailMessage mail
Returns
Type Description
Task

QueueAsync(string, string, string, bool, AdditionalEmailSendingArgs?)

Declaration
public virtual Task QueueAsync(string to, string subject, string body, bool isBodyHtml = true, AdditionalEmailSendingArgs? additionalEmailSendingArgs = null)
Parameters
Type Name Description
string to
string subject
string body
bool isBodyHtml
AdditionalEmailSendingArgs additionalEmailSendingArgs
Returns
Type Description
Task

QueueAsync(string, string, string, string, bool, AdditionalEmailSendingArgs?)

Declaration
public virtual Task QueueAsync(string from, string to, string subject, string body, bool isBodyHtml = true, AdditionalEmailSendingArgs? additionalEmailSendingArgs = null)
Parameters
Type Name Description
string from
string to
string subject
string body
bool isBodyHtml
AdditionalEmailSendingArgs additionalEmailSendingArgs
Returns
Type Description
Task

SendAsync(MailMessage, bool)

Declaration
public virtual Task SendAsync(MailMessage mail, bool normalize = true)
Parameters
Type Name Description
MailMessage mail
bool normalize
Returns
Type Description
Task

SendAsync(string, string?, string?, bool, AdditionalEmailSendingArgs?)

Declaration
public virtual Task SendAsync(string to, string? subject, string? body, bool isBodyHtml = true, AdditionalEmailSendingArgs? additionalEmailSendingArgs = null)
Parameters
Type Name Description
string to
string subject
string body
bool isBodyHtml
AdditionalEmailSendingArgs additionalEmailSendingArgs
Returns
Type Description
Task

SendAsync(string, string, string?, string?, bool, AdditionalEmailSendingArgs?)

Declaration
public virtual Task SendAsync(string from, string to, string? subject, string? body, bool isBodyHtml = true, AdditionalEmailSendingArgs? additionalEmailSendingArgs = null)
Parameters
Type Name Description
string from
string to
string subject
string body
bool isBodyHtml
AdditionalEmailSendingArgs additionalEmailSendingArgs
Returns
Type Description
Task

SendEmailAsync(MailMessage)

Declaration
protected abstract Task SendEmailAsync(MailMessage mail)
Parameters
Type Name Description
MailMessage mail
Returns
Type Description
Task

ValidateEmailAddressAsync(string)

Declaration
protected virtual Task ValidateEmailAddressAsync(string emailAddress)
Parameters
Type Name Description
string emailAddress
Returns
Type Description
Task

Implements

IEmailSender

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform