Skip to main content

Basic Email

The simplest way to send an email:
The examples on this page use the TypeScript SDK. A Python SDK is on the way—check back soon for updates.

Multiple Recipients

Send to multiple recipients using arrays:

With Attachments

Include file attachments in your emails:

Plain Text Alternative

Provide both HTML and plain text versions:
If you only provide HTML, Transmit automatically generates a plain text version.

Custom Headers

Add custom email headers:

Reply-To Address

Set a custom reply-to address:

Tracking

Enable tracking for opens and clicks:

Scheduled Sending

Schedule an email to be sent later:

Batch Sending

Send up to 100 emails in a single API request for better efficiency:

Batch Limits

Response Format

The response contains a data array with a result for each email:
Batch requests support partial success. If some emails fail validation, others will still be processed. Check each result in the response array.

Billing

Each email in the batch is billed individually based on its recipient count. Credits are only consumed for successfully processed emails - failed validations don’t incur charges.

Rate Limiting

When batch requests exceed the per-second rate limit, all emails in the batch are queued for later processing. The response still returns immediately with email IDs.

Tags for Organization

Tag emails for better organization and filtering:

Error Handling

Always handle errors gracefully:

Best Practices

Verify Your Domain

Always verify your sending domain to improve deliverability

Use Templates

Create reusable templates for consistent branding

Implement Webhooks

Track delivery status with webhook events

Monitor Metrics

Check analytics to optimize your email campaigns

Next Steps

Email Templates

Create and use reusable templates

Webhooks

Track email delivery events