Skip to content

Clients

Max Strålin edited this page Mar 3, 2019 · 2 revisions

IMailjetEmailClient

An opinionated client for sending emails, implementing SendAsync(IEmailMessage) and SendAsync(IEnumerable<IEmailMessage>)

IMailjetSimpleClient

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));
}
Clone this wiki locally