Python SDK
The jetemail package is the official Python SDK for JetEmail transactional email (MIT license, Python 3.8+). Create a transactional API key in the dashboard: Outbound → Keys → Add API key. Use that key with the SDK.Installation
Quick start
from_address on a verified domain (see Getting started).
Constructor
client.email.send(**options)
Send a single email.
| Field | Required | Description |
|---|---|---|
from_address | ✓ | Sender, e.g. "Name <[email protected]>" |
to | ✓ | Recipient(s), string or list (max 50) |
subject | ✓ | Subject line |
html | * | HTML body (need html and/or text) |
text | * | Plain text (need html and/or text) |
cc, bcc, reply_to | Recipients (max 50 each) | |
headers | Custom headers dict | |
attachments | Attachments (max 40MB total) |
{ "id": str, "response": str }.
client.batch.send(emails)
Send up to 100 emails in one request. Returns summary (total, successful, failed) and results per message.
Attachments
Error handling
For additional examples and the full option list, see the PyPI package page. REST details: API reference.