View Source
Interface IEmailSender
Simple abstraction to send an email message
Assembly: Umbraco.Core.dll
Syntax
public interface IEmailSender
Methods
View Source
CanSendRequiredEmail()
Verifies if the email sender is configured to send emails.
Declaration
bool CanSendRequiredEmail()
Returns
View Source
SendAsync(EmailMessage, string)
Sends a message asynchronously.
Declaration
[Obsolete("Please use the overload with expires parameter. Scheduled for removal in Umbraco 18.")]
Task SendAsync(EmailMessage message, string emailType)
Parameters
Returns
View Source
SendAsync(EmailMessage, string, bool)
Sends a message asynchronously.
Declaration
[Obsolete("Please use the overload with expires parameter. Scheduled for removal in Umbraco 18.")]
Task SendAsync(EmailMessage message, string emailType, bool enableNotification)
Parameters
| Type |
Name |
Description |
| EmailMessage |
message |
|
| string |
emailType |
|
| bool |
enableNotification |
|
Returns
View Source
SendAsync(EmailMessage, string, bool, TimeSpan?)
Sends a message asynchronously.
Declaration
Task SendAsync(EmailMessage message, string emailType, bool enableNotification = false, TimeSpan? expires = null)
Parameters
| Type |
Name |
Description |
| EmailMessage |
message |
|
| string |
emailType |
|
| bool |
enableNotification |
|
| TimeSpan? |
expires |
|
Returns