Sendbound
Integration·Next.js

Send email from Next.js

Sendbound works with Next.js App Router, Pages Router, Server Actions, API Routes, and Edge Runtime — with full TypeScript types and React Email support built in.

Install

npm install sendbound

API Route (App Router)

// app/api/send/route.ts
import { Sendbound } from 'sendbound';
import { WelcomeEmail } from '@/emails/Welcome';

const sb = new Sendbound(process.env.SB_KEY!);

export async function POST(req: Request) {
  const { email, name } = await req.json();

  await sb.emails.send({
    from:    'hello@yourapp.com',
    to:      email,
    subject: 'Welcome!',
    react:   <WelcomeEmail name={name} />,
  });

  return Response.json({ ok: true });
}

Environment variable

# .env.local
SB_KEY=sk_live_...
App Router and Pages Router support
Server Actions compatible
Edge Runtime (lightweight client)
React Email server-side rendering
Full TypeScript types included
Works with Vercel, Netlify, self-hosted
Sub-30ms p50 send latency
Signed webhook callbacks