Class EmailSender
A utility class for sending emails
Inheritance
System.Object
Namespace: Umbraco.Core
Assembly: Umbraco.Core.dll
Syntax
public class EmailSender : IEmailSender
Constructors
View SourceEmailSender()
Default constructor
Declaration
public EmailSender()
Methods
View SourceSend(MailMessage)
Sends the message non-async
Declaration
public void Send(MailMessage message)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Mail.MailMessage | message |
SendAsync(MailMessage)
Sends the message async
Declaration
public async Task SendAsync(MailMessage message)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Mail.MailMessage | message |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |