Implements an IMessageService that send messages through e-mail.
Initializes a new instance of SmtpMessageService.
public Void SmtpMessageService(configuration)
Name | Type | Summary |
---|---|---|
configuration | ISmtpServerConfiguration | Smpt server configuratión. |
Sends the message through e-mail.
public Task SendAsync(message)
This method attempts to send the message only if it is consedered enabled otherwise it does nothing.
This service is considered enabled when the properties From
and Server
has been configured and the From
property is a valid email address, otherwise this service
is disabled.
Name | Type | Summary |
---|---|---|
message | Message | A Message to be send by e-mail. |
Type | Summary |
---|---|
SendException | Thrown when the message could not be send. |
In this document