IEmailProvider
is defined in the Telligent.Evolution.Extensibility.Version1.Email
namespace of Telligent.Evolution.Platform.dll
Definition
interface IEmailProvider : IPlugin, ISingletonPlugin { void Configure(EmailConfigurationController controller); Task<SendEmailResponse> SendAsync(EmailMessage message, CancellationToken token); }
Methods
void Configure(EmailConfigurationController controller);
Called after the plugin initializes to obtain the appropriate EmailConfigurationController for later use.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
controller | EmailConfigurationController | Controller | Required |
Task<SendEmailResponse> SendAsync(EmailMessage message, CancellationToken token);
Called when the platform initiates the sending of an email.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
message | EmailMessage | Message | Required | ||
token | CancellationToken | Token | Required |
Return Type
Task<SendEmailResponse>