Repository navigation
Highlights
- Support for REIKEM Mail API v2 with named options for sending email, sending personalized batches, querying history, and downloading files.
- Grouped To, Cc, Bcc, and Reply-To recipients with optional display names.
- Optional
idempotencyKeywith typed replay and conflict responses. - Binary attachments via
BufferandUint8Array, optional AI context, and shared batch defaults. - JSON and multipart requests, with bearer token and
X-Adapter-Keyauthentication headers. - Configurable connect and request timeouts, lossless handling of large IDs, and complete status and AI metadata.
- Improved validation and downloads, with 160 HTTP and validation tests and public type contract checks.
Migrating to v2
- Use an API installation with the v2 endpoints and the corresponding database migration.
- Replace positional method arguments with named options objects. The positional constructor remains available.
sendMailListis now an alias for grouped sending. Multiple To recipients share one email and queue ID.- Use Node.js 22+ or Bun 1.4+.
See the README for examples and migration details.
Installation
npm install @reikem/mail-client@2.0.0