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(IEmailSenderConfiguration, IBackgroundJobManager)

Declaration
protected EmailSenderBase(IEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager)
Parameters
Type Name Description
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

Methods

NormalizeMailAsync(MailMessage)

Declaration
protected virtual Task NormalizeMailAsync(MailMessage mail)
Parameters
Type Name Description
System.Net.Mail.MailMessage mail
Returns
Type Description
System.Threading.Tasks.Task

QueueAsync(string, string, string, bool)

Declaration
public virtual Task QueueAsync(string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
string to
string subject
string body
bool isBodyHtml
Returns
Type Description
System.Threading.Tasks.Task

QueueAsync(string, string, string, string, bool)

Declaration
public virtual Task QueueAsync(string from, string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
string from
string to
string subject
string body
bool isBodyHtml
Returns
Type Description
System.Threading.Tasks.Task

SendAsync(MailMessage, bool)

Declaration
public virtual Task SendAsync(MailMessage mail, bool normalize = true)
Parameters
Type Name Description
System.Net.Mail.MailMessage mail
bool normalize
Returns
Type Description
System.Threading.Tasks.Task

SendAsync(string, string, string, bool)

Declaration
public virtual Task SendAsync(string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
string to
string subject
string body
bool isBodyHtml
Returns
Type Description
System.Threading.Tasks.Task

SendAsync(string, string, string, string, bool)

Declaration
public virtual Task SendAsync(string from, string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
string from
string to
string subject
string body
bool isBodyHtml
Returns
Type Description
System.Threading.Tasks.Task

SendEmailAsync(MailMessage)

Declaration
protected abstract Task SendEmailAsync(MailMessage mail)
Parameters
Type Name Description
System.Net.Mail.MailMessage mail
Returns
Type Description
System.Threading.Tasks.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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft