> ## Documentation Index
> Fetch the complete documentation index at: https://resend.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Explore sample apps for different use cases.

## Frameworks

> **[Next.js (TypeScript)](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript)**
>
> Full-stack Next.js app with TypeScript

> **[Next.js (JavaScript)](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript)**
>
> Full-stack Next.js app with JavaScript

> **[Express](https://github.com/resend/resend-examples/tree/main/express-resend-examples)**
>
> Express 5 examples (TypeScript and JavaScript)

> **[Hono](https://github.com/resend/resend-examples/tree/main/hono-resend-examples)**
>
> Hono examples (TypeScript and JavaScript)

> **[Bun](https://github.com/resend/resend-examples/tree/main/bun-resend-examples)**
>
> Bun examples (TypeScript and JavaScript)

> **[Remix](https://github.com/resend/resend-examples/tree/main/remix-resend-examples)**
>
> Remix examples (TypeScript and JavaScript)

> **[Nuxt](https://github.com/resend/resend-examples/tree/main/nuxt-resend-examples)**
>
> Nuxt 3 examples (TypeScript and JavaScript)

> **[SvelteKit](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples)**
>
> SvelteKit examples (TypeScript and JavaScript)

> **[Astro](https://github.com/resend/resend-examples/tree/main/astro-resend-examples)**
>
> Astro examples (TypeScript and JavaScript)

> **[RedwoodJS](https://github.com/resend/resend-examples/tree/main/redwoodjs-resend-examples)**
>
> RedwoodJS examples (TypeScript and JavaScript)

> **[TanStack Start](https://github.com/resend/resend-examples/tree/main/tanstack-resend-examples)**
>
> TanStack Start examples (TypeScript and JavaScript)

> **[PHP](https://github.com/resend/resend-examples/tree/main/php-resend-examples)**
>
> PHP examples with Slim and Symfony

> **[Laravel](https://github.com/resend/resend-examples/tree/main/laravel-resend-examples)**
>
> Laravel 11 examples

> **[Python](https://github.com/resend/resend-examples/tree/main/python-resend-examples)**
>
> Python examples with Flask, FastAPI, and Django

> **[Ruby](https://github.com/resend/resend-examples/tree/main/ruby-resend-examples)**
>
> Ruby examples with Sinatra and Rails

> **[Go](https://github.com/resend/resend-examples/tree/main/go-resend-examples)**
>
> Go examples with Chi and Gin

> **[Java](https://github.com/resend/resend-examples/tree/main/java-resend-examples)**
>
> Java examples with Javalin and Spring Boot

> **[.NET (C#)](https://github.com/resend/resend-examples/tree/main/dotnet-resend-examples)**
>
> ASP.NET Minimal APIs and MVC

> **[Rust](https://github.com/resend/resend-examples/tree/main/rust-resend-examples)**
>
> Rust examples with Axum

> **[Elixir](https://github.com/resend/resend-examples/tree/main/elixir-resend-examples)**
>
> Elixir examples with Phoenix

## Next.js (TypeScript)

> **[Send Email](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/send-email)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/attachments)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/cid-attachments)**
>
> Embed inline images using CID

> **[React Email](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/react-email)**
>
> Send emails with React Email components

> **[Templates](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/templates)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/scheduling)**
>
> Schedule emails for future delivery

> **[Contact Form](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/contact-form)**
>
> Contact form with batch send via Server Actions

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/double-optin)**
>
> Double opt-in subscription flow

> **[Inbound Webhooks](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/inbound)**
>
> Receive and process inbound emails

> **[Prevent Threading](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/prevent-threading)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/audiences)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/domains)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/automations)**
>
> Create and manage lifecycle automations

> **[Better Auth](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/better-auth)**
>
> Email authentication with Better Auth

## Next.js (JavaScript)

> **[Send Email](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/send-email)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/attachments)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/cid-attachments)**
>
> Embed inline images using CID

> **[React Email](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/react-email)**
>
> Send emails with React Email components

> **[Templates](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/templates)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/scheduling)**
>
> Schedule emails for future delivery

> **[Contact Form](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/contact-form)**
>
> Contact form with batch send via Server Actions

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/double-optin)**
>
> Double opt-in subscription flow

> **[Inbound Webhooks](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/inbound)**
>
> Receive and process inbound emails

> **[Prevent Threading](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/prevent-threading)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/audiences)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/domains)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/automations)**
>
> Create and manage lifecycle automations

> **[Better Auth](https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript/src/app/better-auth)**
>
> Email authentication with Better Auth

## Express

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/basic-send.ts)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/batch-send.ts)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/with-attachments.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/with-cid-attachments.ts)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/with-template.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/scheduled-send.ts)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/prevent-threading.ts)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/audiences.ts)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/domains.ts)**
>
> Create and manage sending domains

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/inbound.ts)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/express-resend-examples/typescript/examples/double-optin-subscribe.ts)**
>
> Double opt-in subscription flow

## Hono

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/basic-send.ts)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/batch-send.ts)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/with-attachments.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/with-cid-attachments.ts)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/with-template.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/scheduled-send.ts)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/prevent-threading.ts)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/audiences.ts)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/domains.ts)**
>
> Create and manage sending domains

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/inbound.ts)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/hono-resend-examples/typescript/examples/double-optin-subscribe.ts)**
>
> Double opt-in subscription flow

## Bun

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/basic-send.ts)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/batch-send.ts)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/with-attachments.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/with-cid-attachments.ts)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/with-template.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/scheduled-send.ts)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/prevent-threading.ts)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/audiences.ts)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/domains.ts)**
>
> Create and manage sending domains

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/inbound.ts)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/bun-resend-examples/typescript/examples/double-optin-subscribe.ts)**
>
> Double opt-in subscription flow

## Remix

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Send Email](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.send.ts)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.send-attachment.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.send-cid.ts)**
>
> Embed inline images using CID

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.send-batch.ts)**
>
> Send multiple emails at once

> **[Templates](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.send-template.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.send-scheduled.ts)**
>
> Schedule emails for future delivery

> **[Domains](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.domains.ts)**
>
> Create and manage sending domains

> **[Audiences](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.audiences.contacts.ts)**
>
> Manage contacts and audiences

> **[Webhooks](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/api.webhook.ts)**
>
> Handle webhook events

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/double-optin.tsx)**
>
> Double opt-in subscription flow

> **[Inbound](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/inbound.tsx)**
>
> Receive and process inbound emails

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/remix-resend-examples/typescript/app/routes/prevent-threading.tsx)**
>
> Prevent email threading on Gmail

## Nuxt

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Send Email](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/send.post.ts)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/send-attachment.post.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/send-cid.post.ts)**
>
> Embed inline images using CID

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/send-batch.post.ts)**
>
> Send multiple emails at once

> **[Templates](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/send-template.post.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/send-scheduled.post.ts)**
>
> Schedule emails for future delivery

> **[Domains](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/domains.post.ts)**
>
> Create and manage sending domains

> **[Audiences](https://github.com/resend/resend-examples/tree/main/nuxt-resend-examples/typescript/server/api/audiences)**
>
> Manage contacts and audiences

> **[Webhooks](https://github.com/resend/resend-examples/blob/main/nuxt-resend-examples/typescript/server/api/webhook.post.ts)**
>
> Handle webhook events

## SvelteKit

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Send Email](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send-attachment)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send-cid)**
>
> Embed inline images using CID

> **[Batch Send](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send-batch)**
>
> Send multiple emails at once

> **[Templates](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send-template)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send-scheduled)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/send-prevent-threading)**
>
> Prevent email threading on Gmail

> **[Domains](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/domains)**
>
> Create and manage sending domains

> **[Audiences](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/audiences)**
>
> Manage contacts and audiences

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/double-optin)**
>
> Double opt-in subscription flow

> **[Webhooks](https://github.com/resend/resend-examples/tree/main/sveltekit-resend-examples/typescript/src/routes/api/webhook)**
>
> Handle webhook events

## Astro

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Send Email](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/send.ts)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/send-attachment.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/send-cid.ts)**
>
> Embed inline images using CID

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/send-batch.ts)**
>
> Send multiple emails at once

> **[Templates](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/send-template.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/send-scheduled.ts)**
>
> Schedule emails for future delivery

> **[Domains](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/domains.ts)**
>
> Create and manage sending domains

> **[Audiences](https://github.com/resend/resend-examples/tree/main/astro-resend-examples/typescript/src/pages/api/audiences)**
>
> Manage contacts and audiences

> **[Webhooks](https://github.com/resend/resend-examples/blob/main/astro-resend-examples/typescript/src/pages/api/webhook.ts)**
>
> Handle webhook events

## RedwoodJS

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Send Email](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/send.ts)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/sendAttachment.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/sendCid.ts)**
>
> Embed inline images using CID

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/sendBatch.ts)**
>
> Send multiple emails at once

> **[Templates](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/sendTemplate.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/sendScheduled.ts)**
>
> Schedule emails for future delivery

> **[Domains](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/domains.ts)**
>
> Create and manage sending domains

> **[Audiences](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/audiencesContacts.ts)**
>
> Manage contacts and audiences

> **[Webhooks](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/webhook.ts)**
>
> Handle webhook events

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/redwoodjs-resend-examples/typescript/api/src/functions/doubleOptinSubscribe.ts)**
>
> Double opt-in subscription flow

## TanStack Start

TypeScript and JavaScript variants available. Links below point to the TypeScript examples.

> **[Send Email](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/send.ts)**
>
> Basic email sending

> **[Attachments](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/send-attachment.ts)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/send-cid.ts)**
>
> Embed inline images using CID

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/send-batch.ts)**
>
> Send multiple emails at once

> **[Templates](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/send-template.ts)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/send-scheduled.ts)**
>
> Schedule emails for future delivery

> **[Domains](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/domains.ts)**
>
> Create and manage sending domains

> **[Audiences](https://github.com/resend/resend-examples/tree/main/tanstack-resend-examples/typescript/src/routes/api/audiences)**
>
> Manage contacts and audiences

> **[Webhooks](https://github.com/resend/resend-examples/blob/main/tanstack-resend-examples/typescript/src/routes/api/webhook.ts)**
>
> Handle webhook events

## PHP

> **[Basic Send](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/send)**
>
> Basic, batch, and prevent-threading send

> **[Attachments](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/attachments)**
>
> File attachments and inline images (CID)

> **[Scheduling](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/scheduling)**
>
> Schedule emails for future delivery

> **[Templates](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/templates)**
>
> Send emails using Resend hosted templates

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/double-optin)**
>
> Double opt-in subscription flow

> **[Inbound Webhooks](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/inbound)**
>
> Receive and process inbound emails

> **[Audiences](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/audiences)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/domains)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/tree/main/php-resend-examples/src/automations)**
>
> Create and manage lifecycle automations

> **[Symfony App](https://github.com/resend/resend-examples/tree/main/php-resend-examples/symfony_app)**
>
> Full Symfony web application

## Laravel

> **[Email Sending](https://github.com/resend/resend-examples/blob/main/laravel-resend-examples/app/Http/Controllers/EmailController.php)**
>
> Basic, scheduled, attachments, CID, templates, and prevent threading

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/laravel-resend-examples/app/Http/Controllers/WebhookController.php)**
>
> Handle webhook events

> **[Inbound Email](https://github.com/resend/resend-examples/blob/main/laravel-resend-examples/app/Http/Controllers/InboundController.php)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/laravel-resend-examples/app/Http/Controllers/DoubleOptinController.php)**
>
> Double opt-in subscription flow

> **[Audiences](https://github.com/resend/resend-examples/blob/main/laravel-resend-examples/app/Http/Controllers/AudienceController.php)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/laravel-resend-examples/app/Http/Controllers/DomainController.php)**
>
> Create and manage sending domains

## Python

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/basic_send.py)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/batch_send.py)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/with_attachments.py)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/with_cid_attachments.py)**
>
> Embed inline images using CID

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/scheduled_send.py)**
>
> Schedule emails for future delivery

> **[Templates](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/with_template.py)**
>
> Send emails using Resend hosted templates

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/prevent_threading.py)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/audiences.py)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/domains.py)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/automations.py)**
>
> Create and manage lifecycle automations

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/inbound.py)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/double_optin_subscribe.py)**
>
> Double opt-in subscription flow

> **[Flask App](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/flask_app.py)**
>
> Full Flask web application

> **[FastAPI App](https://github.com/resend/resend-examples/blob/main/python-resend-examples/examples/fastapi_app.py)**
>
> Full FastAPI web application

> **[Django App](https://github.com/resend/resend-examples/tree/main/python-resend-examples/django_app)**
>
> Full Django web application

## Ruby

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/basic_send.rb)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/batch_send.rb)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/with_attachments.rb)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/with_cid_attachments.rb)**
>
> Embed inline images using CID

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/scheduled_send.rb)**
>
> Schedule emails for future delivery

> **[Templates](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/with_template.rb)**
>
> Send emails using Resend hosted templates

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/prevent_threading.rb)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/audiences.rb)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/domains.rb)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/automations.rb)**
>
> Create and manage lifecycle automations

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/ruby-resend-examples/examples/inbound.rb)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/ruby-resend-examples/examples/double_optin)**
>
> Double opt-in subscription flow

> **[Sinatra App](https://github.com/resend/resend-examples/tree/main/ruby-resend-examples/sinatra_app)**
>
> Full Sinatra web application

> **[Rails App](https://github.com/resend/resend-examples/tree/main/ruby-resend-examples/rails_app)**
>
> Full Rails web application

## Go

> **[Basic Send](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/basic_send)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/batch_send)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/with_attachments)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/with_cid_attachments)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/with_template)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/scheduled_send)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/prevent_threading)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/audiences)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/domains)**
>
> Create and manage sending domains

> **[Inbound Webhooks](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/inbound)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/go-resend-examples/examples/double_optin)**
>
> Double opt-in subscription flow

> **[Chi App](https://github.com/resend/resend-examples/tree/main/go-resend-examples/chi_app)**
>
> Full Chi web framework application

> **[Gin App](https://github.com/resend/resend-examples/tree/main/go-resend-examples/gin_app)**
>
> Full Gin web framework application

## Java

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/BasicSend.java)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/BatchSend.java)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/WithAttachments.java)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/WithCidAttachments.java)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/WithTemplate.java)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/ScheduledSend.java)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/PreventThreading.java)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/Audiences.java)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/Domains.java)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/Automations.java)**
>
> Create and manage lifecycle automations

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/Inbound.java)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/java-resend-examples/src/main/java/com/resend/examples/DoubleOptinSubscribe.java)**
>
> Double opt-in subscription flow

> **[Javalin App](https://github.com/resend/resend-examples/tree/main/java-resend-examples/javalin_app)**
>
> Full Javalin web framework application

> **[Spring Boot App](https://github.com/resend/resend-examples/tree/main/java-resend-examples/spring_boot_app)**
>
> Full Spring Boot application

## .NET (C#)

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/BasicSend.cs)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/BatchSend.cs)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/WithAttachments.cs)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/WithCidAttachments.cs)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/WithTemplate.cs)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/ScheduledSend.cs)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/PreventThreading.cs)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/Audiences.cs)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/Domains.cs)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/Automations.cs)**
>
> Create and manage lifecycle automations

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/Inbound.cs)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/dotnet-resend-examples/Examples/DoubleOptinSubscribe.cs)**
>
> Double opt-in subscription flow

> **[Minimal API App](https://github.com/resend/resend-examples/tree/main/dotnet-resend-examples/MinimalApiApp)**
>
> ASP.NET Minimal API application

> **[MVC App](https://github.com/resend/resend-examples/tree/main/dotnet-resend-examples/MvcApp)**
>
> ASP.NET MVC application

## Rust

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/basic_send.rs)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/batch_send.rs)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/with_attachments.rs)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/with_cid_attachments.rs)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/with_template.rs)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/scheduled_send.rs)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/prevent_threading.rs)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/audiences.rs)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/domains.rs)**
>
> Create and manage sending domains

> **[Automations](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/automations.rs)**
>
> Create and manage lifecycle automations

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/inbound.rs)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/blob/main/rust-resend-examples/examples/double_optin_subscribe.rs)**
>
> Double opt-in subscription flow

> **[Axum App](https://github.com/resend/resend-examples/tree/main/rust-resend-examples/axum_app)**
>
> Full Axum web framework application

## Elixir

> **[Basic Send](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/basic_send.exs)**
>
> Basic email sending

> **[Batch Send](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/batch_send.exs)**
>
> Send multiple emails at once

> **[Attachments](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/with_attachments.exs)**
>
> Send emails with file attachments

> **[Inline Images (CID)](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/with_cid_attachments.exs)**
>
> Embed inline images using CID

> **[Templates](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/with_template.exs)**
>
> Send emails using Resend hosted templates

> **[Scheduling](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/scheduled_send.exs)**
>
> Schedule emails for future delivery

> **[Prevent Threading](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/prevent_threading.exs)**
>
> Prevent email threading on Gmail

> **[Audiences](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/audiences.exs)**
>
> Manage contacts and audiences

> **[Domains](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/domains.exs)**
>
> Create and manage sending domains

> **[Inbound Webhooks](https://github.com/resend/resend-examples/blob/main/elixir-resend-examples/examples/inbound.exs)**
>
> Receive and process inbound emails

> **[Double Opt-in](https://github.com/resend/resend-examples/tree/main/elixir-resend-examples/examples/double_optin)**
>
> Double opt-in subscription flow

> **[Phoenix App](https://github.com/resend/resend-examples/tree/main/elixir-resend-examples/phoenix_app)**
>
> Full Phoenix web framework application
