TypeScript SDK
Thesimpleemailapi package provides a fully typed, backend-first SDK for Node.js workflows.
Installation
Usage
Initialize the client with your API key and use theclient.send method.
The
from address must belong to a domain you have verified.Client Configuration
ThecreateClient function accepts the following options:
Your API Key, starting with
sea_live_.API endpoint URL. Defaults to
https://api.simpleemailapi.dev.arguments
Theclient.send method accepts an object with the following properties:
Sender email address. Must be from a verified domain.
List of primary recipient email addresses.
Email subject line.
Plain text content of the email.
HTML content of the email.
List of CC recipient email addresses.
List of BCC recipient email addresses.
List of files to attach.
Reply to a previous email using its
id from our response. We automatically resolve threading headers.Raw Message-ID for threading (advanced). Use
replyTo for simpler threading with our email IDs.List of message IDs for threading context.
Custom headers. // Proto has
metadata, effectively custom headers/metadata.Custom key-value metadata.
Schedule the email for future delivery.
All emails are queued for reliable delivery with automatic retries. Use webhooks or event streaming to track delivery status.