View Source
Class EmailSender
A utility class for sending emails
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class EmailSender : IEmailSender
Constructors
View Source
EmailSender(ILogger<EmailSender>, IOptionsMonitor<GlobalSettings>, IEventAggregator)
Declaration
public EmailSender(ILogger<EmailSender> logger, IOptionsMonitor<GlobalSettings> globalSettings, IEventAggregator eventAggregator)
Parameters
View Source
EmailSender(ILogger<EmailSender>, IOptionsMonitor<GlobalSettings>, IEventAggregator, INotificationHandler<SendEmailNotification>, INotificationAsyncHandler<SendEmailNotification>)
Declaration
public EmailSender(ILogger<EmailSender> logger, IOptionsMonitor<GlobalSettings> globalSettings, IEventAggregator eventAggregator, INotificationHandler<SendEmailNotification> handler1, INotificationAsyncHandler<SendEmailNotification> handler2)
Parameters
Methods
View Source
CanSendRequiredEmail()
Returns true if the application should be able to send a required application email
Declaration
public bool CanSendRequiredEmail()
Returns
Type |
Description |
System.Boolean |
|
View Source
SendAsync(EmailMessage, String)
Declaration
public async Task SendAsync(EmailMessage message, string emailType)
Parameters
Type |
Name |
Description |
EmailMessage |
message |
|
System.String |
emailType |
|
Returns
View Source
SendAsync(EmailMessage, String, Boolean)
Declaration
public async Task SendAsync(EmailMessage message, string emailType, bool enableNotification)
Parameters
Type |
Name |
Description |
EmailMessage |
message |
|
System.String |
emailType |
|
System.Boolean |
enableNotification |
|
Returns