Instantiation
IEmailLibrary for dependency injection.
Building a message
Attachments
Send a message
SendMessageResponse includes:
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.
Scheduled send
Schedule a message for future delivery, check its status, reschedule, or cancel it.Schedule a message
scheduledAt must be an ISO 8601 UTC datetime string in the future and within 30 days.
Get scheduled message status
Reschedule a message
Cancel a scheduled message
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: