-
Notifications
You must be signed in to change notification settings - Fork 1
Clients
Max Strålin edited this page Mar 3, 2019
·
2 revisions
An opinionated client for sending emails, implementing SendAsync(IEmailMessage)
and SendAsync(IEnumerable<IEmailMessage>)
An un-opinionated client implementing SendRequestAsync(IRequestFactory)
for sending any type of request implementing IRequestFactory
. Use the existing requests or create your own IRequestFactory
.
Example usage
From MailjetEmailClient
public async Task<ISendEmailResponse> SendAsync(IEnumerable<IEmailMessage> emailMessages)
{
var res = await client.SendRequestAsync(new SendEmailRequest(emailMessages, Options));
}