Transactional email on Cloudflare

Flaresend documentation

One Worker in your Cloudflare account sends every email your apps need. Call it over REST from anywhere, or over RPC from other Workers, and get logs, retries, templates and webhooks with it.

npm install @flaresend/client
send-welcome.ts
import { Flaresend } from '@flaresend/client';

const flaresend = new Flaresend({
  apiKey: process.env.FLARESEND_API_KEY!,
  baseUrl: 'https://mailer.example.com',
});

const { id } = await flaresend.emails.send({
  from: 'Acme <hello@acme.com>',
  to: 'ada@example.com',
  subject: 'Welcome to Acme',
  template: 'welcome',
  data: { name: 'Ada', appName: 'Acme', loginUrl },
});

Send with your stack

All quickstarts

What you can build

Read the guides