Extension library to work with mailjet client.
$ dotnet add package DRY.MailJetClient.LibraryThis package provides utility methods for sending email using the Mailjet Client with C#.
Download the package DRY.MailJetClient.Library.'
"DryMailClient": {
"ApiKey": "api-key",
"ApiSecret": "api-secret",
"Email": "email address registered with mailjet",
"AppName": "name you want displayed as the sender",
"CustomId": "optional custom id"
}
Register the service in the service collection by calling ConfigureMailJet() on IServiceCollection. The method take IConfiguration as the second argument.
Inject the IMailjetClientService into your class.
The SendAsync() method has overloads for sending single and multiple emails and also methods for sending emails with attachements
Check out the Github Repository to see the available methods implemented in each category
To view the source code or get in touch: