Interface IEmailSender
This service can be used simply sending emails.
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
SendAsync(MailMessage, Boolean)
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
SendAsync(String, String, String, Boolean)
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
SendAsync(String, String, String, String, Boolean)
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
Extension Methods