Show / Hide Table of Contents

Interface IEmailSender

This service can be used simply sending emails.

Namespace: Volo.Abp.Emailing
Assembly: Volo.Abp.Emailing.dll
Syntax
public interface IEmailSender

Methods

QueueAsync(String, String, String, Boolean)

Adds an email to queue to send via background jobs.

Declaration
Task QueueAsync(string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
System.String to
System.String subject
System.String body
System.Boolean isBodyHtml
Returns
Type Description
Task

QueueAsync(String, String, String, String, Boolean)

Adds an email to queue to send via background jobs.

Declaration
Task QueueAsync(string from, string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
System.String from
System.String to
System.String subject
System.String body
System.Boolean isBodyHtml
Returns
Type Description
Task

SendAsync(MailMessage, Boolean)

Sends an email.

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

Mail to be sent

System.Boolean normalize

Should normalize email? If true, it sets sender address/name if it's not set before and makes mail encoding UTF-8.

Returns
Type Description
Task

SendAsync(String, String, String, Boolean)

Sends an email.

Declaration
Task SendAsync(string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
System.String to
System.String subject
System.String body
System.Boolean isBodyHtml
Returns
Type Description
Task

SendAsync(String, String, String, String, Boolean)

Sends an email.

Declaration
Task SendAsync(string from, string to, string subject, string body, bool isBodyHtml = true)
Parameters
Type Name Description
System.String from
System.String to
System.String subject
System.String body
System.Boolean isBodyHtml
Returns
Type Description
Task

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft