Send emails
with Vercel

Resend is transforming email for developers. Simple interface, easy integrations, handy templates. What else could we ask for.

Guillermo Rauch

Creator of Next.js

Marketplace

Set up Resend without leaving Vercel

Install the Resend integration from the Vercel Marketplace to create an account, add your API key to your project's environment variables, and configure DNS automatically.

Resend on the Vercel Marketplace

Made for the Next.js stack

Resend is built for the frameworks you deploy on Vercel. Compose your emails with react.email, our collection of high-quality, unstyled components for creating beautiful emails using TypeScript and React.

import { Html, Button } from 'react-email';
import * as React from 'react';
interface EmailProps {
link: string;
}
export function Email({ link }: EmailProps) {
return (
<Html lang="en" dir="ltr">
<Button href={link} style={{ color: '#61dafb' }}>
Click me
</Button>
</Html>
);
}
import { EmailTemplate } from '@/components/email-template';
import { Resend } from 'resend';
const resend = new Resend(process.env.RESEND_API_KEY);
export async function POST() {
const { data, error } = await resend.emails.send({
from: 'onboarding@resend.dev',
to: 'delivered@resend.dev',
subject: 'Hello world',
react: EmailTemplate({ firstName: 'John' }),
});
if (error) {
return Response.json({ error });
}
return Response.json(data);
}

Integrate with the Next.js App Router

Next.js is the framework built by Vercel for React Server Components. Resend is compatible with the App Router and the latest versions of Next.js, so you can send emails straight from your route handlers.

Send with Server Actions

Integrate Resend with Server Actions by defining an asynchronous function with the "use server" directive at the top of the function body. This ensures that Resend is only executed on the server, right where your Vercel deployment runs it.

import { Resend } from 'resend';
export default async function Page() {
async function send() {
'use server';
const resend = new Resend(process.env.RESEND_API_KEY);
const { data, error } = await resend.emails.send({
from: 'Acme <onboarding@resend.dev>',
to: ['delivered@resend.dev'],
subject: 'Hello World',
html: '<strong>It works!</strong>'
});
if (error) {
throw new Error(error.message);
}
console.log(data);
}
return (
<form action={send}>
<button type="submit">Send email</button>
</form>
)
}
const RESEND_API_KEY = 're_xxxxxxxxx';
export async function POST() {
const res = await fetch('https://api.resend.com/emails', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${RESEND_API_KEY}`,
},
body: JSON.stringify({
from: 'onboarding@resend.dev',
to: ['delivered@resend.dev'],
subject: 'Hello World',
html: '<strong>it works!</strong>',
}),
});
if (res.ok) {
const data = await res.json();
return Response.json(data);
}
}

Deploy with Vercel Functions

Call the Resend API directly from a Vercel Function. Add your API key as an environment variable in your Vercel project and send transactional emails from any serverless endpoint, no extra infrastructure required.

"I've added emails to my site in 30 minutes. Resend is amazing."

Lee Robinson

VP of Developer Education at Cursor

All you need to get started

Resources to help you integrate email into your Vercel deployment quickly.

Vercel Quickstart

Follow the step-by-step guide and learn how to send your first email using Vercel.

Vercel example

Clone the example repository to get started quickly with Resend using Vercel.

API reference

Understand the REST API endpoints and each of the parameters that can be used.

  • "Our team loves Resend. It makes email sending so easy and reliable. After we switched to Dedicated IPs, our deliverability improved tremendously and we don't hear complaints about emails landing on spam anymore."
    Vlad MatsiiakoCo-founder of Infisical
  • "As a developer I love the approach that the Resend team is taking. Its so refreshing. They are also extremely user-centric and helpful in terms of getting you up and running, sending beautiful emails that deliver."
    Hahnbee LeeCo-Founder at Mintlify
  • "We value tools that feel stable, well thought out, and aligned with the standards we expect across our stack. Resend meets those expectations. It lets our team stay focused on building the larger platform rather than getting pulled into the overhead that typically comes with legacy email infrastructure."
    Bradley GreenwoodVP of Engineering at MrBeast
  • "Our partnership with Resend has been a great experience. They've made sure we can focus on what we do best—building our product and growing our business."
    Sahil LavingiaCEO of Gumroad
  • "Switching over to Resend from SendGrid marked a significant improvement in our email management. We started with a small test - waitlist emails for our iOS and Windows apps. Within 30 minutes, we were done."
    Thomas MannFounder & CEO of Raycast
  • "The simplicity and reliability of Resend allowed our engineers to focus on building features rather than troubleshooting email infrastructure."
    Amadeo PellicceConnectors, Agents and Automations Lead at Replit
  • "We're a small team with a lot on our plates. Email infrastructure is something we don't want to think about, and with Resend we don't have to."
    Peter SuhmOps at Tailwind
  • "The best part about taking Resend into production was that there was no friction at all."
    Tara NagarSoftware Engineer at Braintrust
  • "The flexibility of Resend is what we value most. It allows us to quickly adapt and refine our email communications as our products evolve."
    Glauber CostaFounder and CEO at Turso
  • "Resend is email with simpler APIs, better webhooks, and best-in-class debugging."
    Dan FarrellyCTO and Co-Founder of Inngest
  • "Our team loves Resend. It makes email sending so easy and reliable. After we switched to Dedicated IPs, our deliverability improved tremendously and we don't hear complaints about emails landing on spam anymore."
    Vlad MatsiiakoCo-founder of Infisical
  • "As a developer I love the approach that the Resend team is taking. Its so refreshing. They are also extremely user-centric and helpful in terms of getting you up and running, sending beautiful emails that deliver."
    Hahnbee LeeCo-Founder at Mintlify
  • "We value tools that feel stable, well thought out, and aligned with the standards we expect across our stack. Resend meets those expectations. It lets our team stay focused on building the larger platform rather than getting pulled into the overhead that typically comes with legacy email infrastructure."
    Bradley GreenwoodVP of Engineering at MrBeast
  • "Our partnership with Resend has been a great experience. They've made sure we can focus on what we do best—building our product and growing our business."
    Sahil LavingiaCEO of Gumroad
  • "Switching over to Resend from SendGrid marked a significant improvement in our email management. We started with a small test - waitlist emails for our iOS and Windows apps. Within 30 minutes, we were done."
    Thomas MannFounder & CEO of Raycast
  • "The simplicity and reliability of Resend allowed our engineers to focus on building features rather than troubleshooting email infrastructure."
    Amadeo PellicceConnectors, Agents and Automations Lead at Replit
  • "We're a small team with a lot on our plates. Email infrastructure is something we don't want to think about, and with Resend we don't have to."
    Peter SuhmOps at Tailwind
  • "The best part about taking Resend into production was that there was no friction at all."
    Tara NagarSoftware Engineer at Braintrust
  • "The flexibility of Resend is what we value most. It allows us to quickly adapt and refine our email communications as our products evolve."
    Glauber CostaFounder and CEO at Turso
  • "Resend is email with simpler APIs, better webhooks, and best-in-class debugging."
    Dan FarrellyCTO and Co-Founder of Inngest
  • "Our team loves Resend. It makes email sending so easy and reliable. After we switched to Dedicated IPs, our deliverability improved tremendously and we don't hear complaints about emails landing on spam anymore."
    Vlad MatsiiakoCo-founder of Infisical
  • "As a developer I love the approach that the Resend team is taking. Its so refreshing. They are also extremely user-centric and helpful in terms of getting you up and running, sending beautiful emails that deliver."
    Hahnbee LeeCo-Founder at Mintlify
  • "We value tools that feel stable, well thought out, and aligned with the standards we expect across our stack. Resend meets those expectations. It lets our team stay focused on building the larger platform rather than getting pulled into the overhead that typically comes with legacy email infrastructure."
    Bradley GreenwoodVP of Engineering at MrBeast
  • "Our partnership with Resend has been a great experience. They've made sure we can focus on what we do best—building our product and growing our business."
    Sahil LavingiaCEO of Gumroad
  • "Switching over to Resend from SendGrid marked a significant improvement in our email management. We started with a small test - waitlist emails for our iOS and Windows apps. Within 30 minutes, we were done."
    Thomas MannFounder & CEO of Raycast
  • "The simplicity and reliability of Resend allowed our engineers to focus on building features rather than troubleshooting email infrastructure."
    Amadeo PellicceConnectors, Agents and Automations Lead at Replit
  • "We're a small team with a lot on our plates. Email infrastructure is something we don't want to think about, and with Resend we don't have to."
    Peter SuhmOps at Tailwind
  • "The best part about taking Resend into production was that there was no friction at all."
    Tara NagarSoftware Engineer at Braintrust
  • "The flexibility of Resend is what we value most. It allows us to quickly adapt and refine our email communications as our products evolve."
    Glauber CostaFounder and CEO at Turso
  • "Resend is email with simpler APIs, better webhooks, and best-in-class debugging."
    Dan FarrellyCTO and Co-Founder of Inngest

Start sending in minutes

Resend delivers mission-critical emails for some
of the fastest growing teams.

Sign up for free