Examples
Frameworks
Section titled “Frameworks”Next.js (TypeScript)
Full-stack Next.js app with TypeScript
Next.js (JavaScript)
Full-stack Next.js app with JavaScript
Express
Express 5 examples (TypeScript and JavaScript)
Hono
Hono examples (TypeScript and JavaScript)
Bun
Bun examples (TypeScript and JavaScript)
Remix
Remix examples (TypeScript and JavaScript)
Nuxt
Nuxt 3 examples (TypeScript and JavaScript)
SvelteKit
SvelteKit examples (TypeScript and JavaScript)
Astro
Astro examples (TypeScript and JavaScript)
RedwoodJS
RedwoodJS examples (TypeScript and JavaScript)
TanStack Start
TanStack Start examples (TypeScript and JavaScript)
PHP
PHP examples with Slim and Symfony
Laravel
Laravel 11 examples
Python
Python examples with Flask, FastAPI, and Django
Ruby
Ruby examples with Sinatra and Rails
Go
Go examples with Chi and Gin
Java
Java examples with Javalin and Spring Boot
.NET (C#)
ASP.NET Minimal APIs and MVC
Rust
Rust examples with Axum
Elixir
Elixir examples with Phoenix
Next.js (TypeScript)
Section titled “Next.js (TypeScript)”Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
React Email
Send emails with React Email components
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Contact Form
Contact form with batch send via Server Actions
Double Opt-in
Double opt-in subscription flow
Inbound Webhooks
Receive and process inbound emails
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Better Auth
Email authentication with Better Auth
Next.js (JavaScript)
Section titled “Next.js (JavaScript)”Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
React Email
Send emails with React Email components
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Contact Form
Contact form with batch send via Server Actions
Double Opt-in
Double opt-in subscription flow
Inbound Webhooks
Receive and process inbound emails
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Better Auth
Email authentication with Better Auth
Express
Section titled “Express”TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
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
TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
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
TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
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
TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Batch Send
Send multiple emails at once
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Domains
Create and manage sending domains
Audiences
Manage contacts and audiences
Webhooks
Handle webhook events
Double Opt-in
Double opt-in subscription flow
Inbound
Receive and process inbound emails
Prevent Threading
Prevent email threading on Gmail
TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Batch Send
Send multiple emails at once
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Domains
Create and manage sending domains
Audiences
Manage contacts and audiences
Webhooks
Handle webhook events
SvelteKit
Section titled “SvelteKit”TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Batch Send
Send multiple emails at once
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
Domains
Create and manage sending domains
Audiences
Manage contacts and audiences
Double Opt-in
Double opt-in subscription flow
Webhooks
Handle webhook events
TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Batch Send
Send multiple emails at once
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Domains
Create and manage sending domains
Audiences
Manage contacts and audiences
Webhooks
Handle webhook events
RedwoodJS
Section titled “RedwoodJS”TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Batch Send
Send multiple emails at once
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Domains
Create and manage sending domains
Audiences
Manage contacts and audiences
Webhooks
Handle webhook events
Double Opt-in
Double opt-in subscription flow
TanStack Start
Section titled “TanStack Start”TypeScript and JavaScript variants available. Links below point to the TypeScript examples.
Send Email
Basic email sending
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Batch Send
Send multiple emails at once
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Domains
Create and manage sending domains
Audiences
Manage contacts and audiences
Webhooks
Handle webhook events
Basic Send
Basic, batch, and prevent-threading send
Attachments
File attachments and inline images (CID)
Scheduling
Schedule emails for future delivery
Templates
Send emails using Resend hosted templates
Double Opt-in
Double opt-in subscription flow
Inbound Webhooks
Receive and process inbound emails
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Symfony App
Full Symfony web application
Laravel
Section titled “Laravel”Email Sending
Basic, scheduled, attachments, CID, templates, and prevent threading
Inbound Webhooks
Handle webhook events
Inbound Email
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Python
Section titled “Python”Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Scheduling
Schedule emails for future delivery
Templates
Send emails using Resend hosted templates
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Inbound Webhooks
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow
Flask App
Full Flask web application
FastAPI App
Full FastAPI web application
Django App
Full Django web application
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Scheduling
Schedule emails for future delivery
Templates
Send emails using Resend hosted templates
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Inbound Webhooks
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow
Sinatra App
Full Sinatra web application
Rails App
Full Rails web application
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
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
Chi App
Full Chi web framework application
Gin App
Full Gin web framework application
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Inbound Webhooks
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow
Javalin App
Full Javalin web framework application
Spring Boot App
Full Spring Boot application
.NET (C#)
Section titled “.NET (C#)”Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Inbound Webhooks
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow
Minimal API App
ASP.NET Minimal API application
MVC App
ASP.NET MVC application
Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
Audiences
Manage contacts and audiences
Domains
Create and manage sending domains
Automations
Create and manage lifecycle automations
Inbound Webhooks
Receive and process inbound emails
Double Opt-in
Double opt-in subscription flow
Axum App
Full Axum web framework application
Elixir
Section titled “Elixir”Basic Send
Basic email sending
Batch Send
Send multiple emails at once
Attachments
Send emails with file attachments
Inline Images (CID)
Embed inline images using CID
Templates
Send emails using Resend hosted templates
Scheduling
Schedule emails for future delivery
Prevent Threading
Prevent email threading on Gmail
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
Phoenix App
Full Phoenix web framework application