Class EmailSenderBase
Inheritance
System.Object
EmailSenderBase
Assembly: Volo.Abp.Emailing.dll
Syntax
public abstract class EmailSenderBase : object, IEmailSender
Constructors
EmailSenderBase(IEmailSenderConfiguration, IBackgroundJobManager)
Declaration
protected EmailSenderBase(IEmailSenderConfiguration configuration, IBackgroundJobManager backgroundJobManager)
Parameters
Properties
BackgroundJobManager
Declaration
protected IBackgroundJobManager BackgroundJobManager { get; }
Property Value
Configuration
Declaration
protected IEmailSenderConfiguration Configuration { get; }
Property Value
Methods
NormalizeMailAsync(MailMessage)
Normalizes given email.
Fills if it's not filled before.
Sets encodings to UTF8 if they are not set before.
Declaration
protected virtual Task NormalizeMailAsync(MailMessage mail)
Parameters
| Type |
Name |
Description |
| MailMessage |
mail |
Mail to be normalized
|
Returns
QueueAsync(String, String, String, Boolean)
Declaration
public virtual 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
public virtual Task SendAsync(MailMessage mail, bool normalize = true)
Parameters
| Type |
Name |
Description |
| MailMessage |
mail |
|
| System.Boolean |
normalize |
|
Returns
SendAsync(String, String, String, Boolean)
Declaration
public virtual 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
public virtual 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
SendEmailAsync(MailMessage)
Should implement this method to send email in derived classes.
Declaration
protected abstract Task SendEmailAsync(MailMessage mail)
Parameters
| Type |
Name |
Description |
| MailMessage |
mail |
Mail to be sent
|
Returns
Implements
Extension Methods