Transactional API, SMTP relay, admin UI, and developer portal in one self-hostable codebase. Route through Resend, Postmark, or SES per tenant — keep your data, templates, and analytics on your own infrastructure.
No credit card. Free up to 3,000 emails/month on the shared instance.
import { NextMail } from '@cybersquad/nextmail';
const mail = new NextMail({
apiKey: process.env.NEXTMAIL_KEY,
});
await mail.send({
from: 'noreply@headmanlaw.com',
to: 'client@example.com',
template: 'niw-eligibility-result',
data: { name: 'Mr. Khan', verdict: 'qualified' },
});One codebase. Multi-tenant from day one. Deploy as a shared instance or per-client container.
POST /v1/emails with JSON. TypeScript SDK, scoped API keys, sandbox mode. Idiomatic in any backend.
Point any legacy app, WordPress plugin, or CI tool at smtp.yourdomain. API key is the password.
Resend, Postmark, AWS SES, or any SMTP target — chosen per tenant per domain. Switch without code changes.
Every provider event — delivered, bounced, opened, clicked — comes back in one shape. HMAC-signed.
MJML source compiled to HTML + plaintext. Pin a version per send, edit safely, preview before deploy.
Bounces and complaints add the address to a tenant-wide list. Never send to it again — across every project.
Designed so a non-technical client admin can onboard a domain in fifteen minutes, and a developer can integrate in ten.
Paste three DNS records into your registrar. NextMail verifies SPF, DKIM, and DMARC in real time. No CLI, no waiting.
Scoped to emails:send or full admin. Shown once, hashed at rest. Use it in the SDK, REST API, or as your SMTP password.
NextMail picks the right provider for the domain, handles retries, captures events, fans webhooks to your app. You write product code.
Bring your own backend — switch providers per tenant without code changes.
Not Gmail. Not Postmark. Not us. Inbox placement depends on DNS hygiene, IP reputation, recipient engagement, and provider trust — 80% infrastructure, 20% code.
What NextMail does: stack the deck. Provider routing borrows day-one reputation, automatic suppression keeps your sender score clean, SPF / DKIM / DMARC is verified per domain, and bounce / complaint feedback fans into your app in real time.
First four weeks of any new IP — provider or self-hosted — assume lower numbers while reputation builds.
Spin up a tenant in two minutes. Add a sending domain. Send the first email before the coffee cools.