Skip to main content

Instantiation

See Authentication for both approaches. Use IEmailLibrary for dependency injection.

Building a message

Attachments

Send a message

The 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

Common 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 throw SystemException on API errors. The exception message contains the raw JSON response body: