Skip to main content

Rust SDK

The jetemail crate is the official Rust SDK for JetEmail transactional email (MIT license, async with Tokio). Create a transactional API key in the dashboard: OutboundKeys → Add API key. Use that key with the SDK.

Installation

Add to your Cargo.toml:
Crate on crates.io: jetemail.

Quick start

Use a from address on a verified domain (see Getting started).

Constructor

client.email().send(options)

Send a single email. Response shape: SendEmailResponse { id: String, response: String }.

client.batch().send(emails)

Send up to 100 emails in one request. Returns summary (total, successful, failed) and results per message.

Attachments

Error handling

Common status codes: 400 invalid request, 401 bad/missing API key, 500 server error.
For additional examples and the full option list, see the crates.io page. REST details: API reference.