Use this pre-built prompt to get started faster.
Prerequisites
Before you start, you’ll need:- A Resend API key
- A verified domain
Guide
Set your API key
Store your API key in an environment variable in your Pass it to the constructor with
.env file.process.env.RESEND_API_KEY. See Create an API key for the full setup.Examples
Express (TypeScript)
Full Express app with TypeScript
Express (JavaScript)
Full Express app with JavaScript
Attachments
Send emails with file attachments
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Inbound Webhooks
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow