Interface IEmailSenderService
Contract services sending emails.
Namespace: Kephas.Mail.Services
Assembly: Kephas.Mail.dll
Syntax
public interface IEmailSenderService
Methods
| Improve this Doc View SourceCreateEmailMessageBuilder(IContext)
Creates email message builder.
Declaration
IEmailMessageBuilder CreateEmailMessageBuilder(IContext context = null)
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The sending context. |
Returns
Type | Description |
---|---|
IEmailMessageBuilder | The new email message builder. |
SendAsync(IEmailMessage, IContext, CancellationToken)
Sends an email asynchronously.
Declaration
Task SendAsync(IEmailMessage emailMessage, IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IEmailMessage | emailMessage | The email message. |
IContext | context | The sending context. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An asynchronous result. |