Skip to main content

Node.js Quickstart

Send your first email with the Mailofly TypeScript SDK. Requires: Node.js 18+ · API key · Account key

1. Install


2. Send an email


3. Check mail logs

Open Emails or call:

Next.js App Router & CLI Automations

Use the Mailofly CLI to quickly scaffold an automated background API route in your Next.js project. This creates a type-safe automation handler compatible with Vercel and Mailofly’s scheduling engine:
You can then import this handler and invoke it directly from your React Server Actions or as a REST endpoint to queue emails asynchronously without blocking the client.

Next