Instantiation
IEmailLibrary for dependency injection.
Building a message
Attachments
Send a message
SendMessageResponse includes:
| Property | Description |
|---|---|
SourceTrackingId | Use to check delivery status |
Data | Raw response data |
Errors | List of Error objects if the request failed |
Send bulk messages
Send up to 50 messages in a single API call. Each message gets its own tracking ID.Check delivery status
DeliveryStatus values: delivered, opened, failed, pending.
Dynamic templates
Templates use Handlebars syntax ({{variable_name}}).
Create a template
List templates
Get a template
Update a template
Delete a template
Send a templated message
Error handling
All methods throwSystemException on API errors. The exception message contains the raw JSON response body: