Prompt
email API for Vercel
Latest observation
Nov 14, 2026
OpenAI APIWeb search: off
If you want to send email from a Vercel app, the most common options are:
Good email APIs to use with Vercel
- Resend — very Vercel-friendly, simple API, great for app transactional email
- SendGrid — widely used, more enterprise-y
- Postmark — excellent for transactional email deliverability
- Mailgun — flexible, but a bit more setup
- Amazon SES — cheapest at scale, more complex
Recommended choice
Resend is usually the easiest with Vercel.
Example with Resend in a Vercel/Next.js app
- Install:
npm install resend
- Add env var in Vercel:
RESEND_API_KEY=your_key_here
- Create an API route:
// app/api/send/route.js
import { Resend } from 'resend';
const resend = new Resend(process.env.RESEND_API_KEY);
export async function POST(req) {
const { to, subject, text } = await req.json();
const result = await resend.emails.send({
from: 'Your App <no-reply@yourdomain.com>',
to,
subject,
text,
});
return Response.json(result);
}
- Call it from your frontend with
fetch().
Notes for Vercel
- Keep the API key in Environment Variables
- Use a serverless function / route handler
- Verify your sending domain for better deliverability
- Don’t send mail directly from client-side code
If you want, I can give you:
- a full Next.js + Vercel email example
- a React form + API route
- or compare Resend vs SendGrid vs Postmark for your use case.