Start by creating your email template on components/email-template.tsx.
components/email-template.tsx
import * as React from 'react';interface EmailTemplateProps { firstName: string;}export function EmailTemplate({ firstName }: EmailTemplateProps) { return ( <div> <h1>Welcome, {firstName}!</h1> </div> );}
3
Send email using React
Create a route file under app/api/send/route.ts (or pages/api/send.ts if you’re using Pages Router).Import the React email template and send an email using the react parameter.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Resend","description":"Resend is the email API for developers. The documentation covers the REST API, official SDKs, the CLI, the MCP server, webhooks, deliverability guides, and step-by-step quickstarts for every major language and framework.","colors":{"primary":"#000000","light":"#EBECED","dark":"#0A0C10"},"logo":{"light":"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-black.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=630be7deea6ea94cc7fc4560ea60a5ac","dark":"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-white.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=3843916235739ffb9cb1d24683221341","href":"https://resend.com"},"favicon":"https://mintcdn.com/resend/ABWmVTZIHGIFNTFD/favicon.png?fit=max\u0026auto=format\u0026n=ABWmVTZIHGIFNTFD\u0026q=85\u0026s=cdbec1c9eedb30488e99d94d84999c24","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.resend.com"}},"background":{"color":{"dark":"#000000"}},"navbar":{"links":[{"href":"https://resend.com/login","label":"Sign In"}],"primary":{"type":"button","label":"Get Started","href":"https://resend.com/signup"}},"footer":{"socials":{"x":"https://x.com/resend","github":"https://github.com/resend","youtube":"https://www.youtube.com/@resendlabs","website":"https://resend.com/"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Inter","weight":700},"body":{"family":"Inter","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"vesper"}},"latex":false},"integrations":{"posthog":{"apiKey":"phc_AgEBpcQTRsBl3UgQX2U8XvimTlgdXG6YEhfvJl2cUfc","sessionRecording":false}},"contextual":{"options":["copy",{"title":"llms-full.txt","description":"View all docs as Markdown for LLMs","icon":"markdown","href":"https://resend.com/docs/llms-full.txt"},"add-mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"resend","hasAudioNarration":false,"actualSubdomain":"resend","customDomains":["resend.com","resend-staging.com"],"gitSource":{"type":"github","owner":"resend","repo":"resend-docs","deployBranch":"main","contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae37f5fa297e550f5237780","collectionId":"098b977e-2a05-4ea9-b820-4b730f2399dc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae37f5fa297e550f5237780"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae37f5fa297e550f5237780","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Documentation","count":178},{"language":"default","tag":"API Reference","count":150},{"language":"default","tag":"Learn","count":115},{"language":"default","tag":"Guides","count":95},{"language":"default","tag":"Get started","count":57},{"language":"default","tag":"Webhooks","count":54},{"language":"default","tag":"Sending examples","count":52},{"language":"default","tag":"Domains","count":38},{"language":"default","tag":"Events reference","count":37},{"language":"default","tag":"Sending","count":32}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:not(.dark) ::selection{background-color:#0000001a}html.dark ::selection{background-color:#ffffff33}html:not(.dark) .codeblock-light .line-highlight,html:not(.dark) .codeblock-light .line-highlight:after,html:not(.dark) .codeblock-light .line-highlight:before{background:#00cc9937}html.dark .line-highlight,html.dark .line-highlight:after,html.dark .line-highlight:before,html:not(.dark) .codeblock-dark .line-highlight,html:not(.dark) .codeblock-dark .line-highlight:after,html:not(.dark) .codeblock-dark .line-highlight:before{background:#00fff61d}html.dark .line-highlight:before,html:not(.dark) .codeblock-dark .line-highlight:before{border-color:#4cd7b8}html:not(.dark) .codeblock-light .line-highlight:before{border-color:#55d799}#page-context-menu-button{padding-block:8px}#page-context-menu-button span{display:none}.nav-logo{width:80px}@media (min-width:1024px){#navbar .flex-1:has(>a .nav-logo){flex:none!important;width:15rem}#navbar .ustify-end:has(.nav-tabs){justify-content:space-between!important;margin-left:0!important}#navbar .flex:has(>.ustify-end){flex:1!important}#navbar .nav-tabs{white-space:nowrap}}"}],"page":{"pagePath":"send-with-nextjs","slug":"/send-with-nextjs","pageMetadata":{"title":"Send emails with Next.js","sidebarTitle":"Next.js","description":"Learn how to send your first email using Next.js and the Resend Node.js SDK.","href":"/send-with-nextjs"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to send your first email using Next.js and the Resend Node.js SDK.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const YouTube=({id})=>{return _jsx(`iframe`,{className:`mint-w-full mint-aspect-video mint-rounded-xl`,src:`https://www.youtube.com/embed/${id}`,title:`YouTube video player`,frameBorder:`0`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:true})};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,CodeGroup,Heading,Prompt,Step,Steps,_MdxComponentBoundary}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Prompt)_missingMdxReference(`Prompt`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Prompt,{description:`Use this pre-built prompt to get started faster.`,icon:`microchip`,iconType:`solid`,actions:[`copy`,`cursor`],children:`# Send Email with Resend Node.js SDK\n\n**Purpose:** Enforce only the **current** and **correct** instructions for sending emails using the [Resend](https://resend.com/) Node.js SDK.\n**Scope:** All AI-generated advice or code related to sending email with Resend must follow these guardrails.\n\n***\n\n## **1. Official Resend Node.js Setup**\n\n### **Prerequisites**\n\nHuman must first create an API key and verify their domain at [https://resend.com/domains](https://resend.com/domains).\n\nThe API key must be stored in an environment variable called \\`RESEND_API_KEY\\`.\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nconst resend = new Resend('YOUR_RESEND_API_KEY');\n\\`\\`\\`\n\nThe domain should be verified at [https://resend.com/domains](https://resend.com/domains) and added to the \\`from\\` address.\n\n### **Install the SDK**\n\nUse the project's existing package manager to install the Resend Node.js SDK.\n\n\\`\\`\\`bash theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nnpm install resend\n# or: yarn add resend / pnpm add resend / bun add resend\n\\`\\`\\`\n\n### **Initialize the Client**\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nimport { Resend } from 'resend';\n\nconst resend = new Resend('YOUR_RESEND_API_KEY');\n\\`\\`\\`\n\n### **Send an Email**\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nconst { data, error } = await resend.emails.send({\n from: 'Acme \u003conboarding@resend.dev>',\n to: ['delivered@resend.dev'],\n subject: 'Hello World',\n html: '\u003cstrong>It works!\u003c/strong>',\n});\n\nif (error) {\n console.error(error);\n return;\n}\n\nconsole.log(data); // { id: '49a3999c-...' }\n\\`\\`\\`\n\n### Rate Limiting\n\nThe default rate limit is 10 requests per second per team. If you exceed the rate limit, you'll receive a \\`429\\` response error code. If needed, you can request a rate increase by [contacting support](https://resend.com/help).\n\n### Idempotency\n\nBest practice: Add an idempotency key to prevent duplicated emails, which is useful for retrying failed emails safely.\n\n* Should be **unique per API request**\n* Idempotency keys expire after **24 hours**\n* Have a maximum length of **256 characters**\n* Pattern: \\`\u003cevent-type>/\u003centity-id>\\`\n* Example: \\`welcome-user/123456789\\`\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nconst { data, error } = await resend.emails.send({\n from: 'Acme \u003conboarding@resend.dev>',\n to: ['delivered@resend.dev'],\n subject: 'Hello World',\n html: '\u003cstrong>It works!\u003c/strong>',\n idempotencyKey: 'unique-id',\n});\n\\`\\`\\`\n\n***\n\n## **2. Complete \\`emails.send()\\` Parameter Reference**\n\n### **Required Parameters**\n\n| Parameter | Type | Description |\n| --------- | -------------------- | -------------------------------------------------------------------------------- |\n| \\`from\\` | \\`string\\` | Sender email address. Supports friendly name format: \\`\"Name \u003cemail@domain.com>\"\\` |\n| \\`to\\` | \\`string \\\\| string[]\\` | Recipient email address(es). Maximum 50 addresses. |\n| \\`subject\\` | \\`string\\` | Email subject line. |\n\n### **Content Parameters (at least one required)**\n\n| Parameter | Type | Description |\n| --------- | ----------------- | ---------------------------------------------------------- |\n| \\`html\\` | \\`string\\` | HTML version of the email body. |\n| \\`text\\` | \\`string\\` | Plain text version. Auto-generated from \\`html\\` if omitted. |\n| \\`react\\` | \\`React.ReactNode\\` | React Email component to render the message. Node.js only. |\n\n### **Optional Parameters**\n\n| Parameter | Type | Description |\n| ------------- | -------------------- | ------------------------------------------------------------- |\n| \\`cc\\` | \\`string \\\\| string[]\\` | Carbon copy recipients. |\n| \\`bcc\\` | \\`string \\\\| string[]\\` | Blind carbon copy recipients. |\n| \\`replyTo\\` | \\`string \\\\| string[]\\` | Reply-to address(es). |\n| \\`scheduledAt\\` | \\`string\\` | Schedule delivery time. Accepts ISO 8601 or natural language. |\n| \\`headers\\` | \\`object\\` | Custom email headers as key-value pairs. |\n| \\`tags\\` | \\`Tag[]\\` | Custom metadata. Name and value: max 256 chars, ASCII only. |\n| \\`attachments\\` | \\`Attachment[]\\` | File attachments. Max 40MB total per email after encoding. |\n\n### **Template Parameters**\n\n| Parameter | Type | Description |\n| -------------------- | -------- | ---------------------------------------------------------------- |\n| \\`template.id\\` | \\`string\\` | Published template identifier. |\n| \\`template.variables\\` | \\`object\\` | Variable substitutions. Key max 50 chars, value max 2,000 chars. |\n\nIf \\`template\\` is provided, do not include \\`html\\`, \\`text\\`, or \\`react\\`.\n\n### **Response**\n\nA successful call returns:\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\n{ data: { id: string }, error: null }\n\\`\\`\\`\n\nA failed call returns:\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\n{ data: null, error: { message: string, name: string } }\n\\`\\`\\`\n\n***\n\n## **3. Sending with React Email**\n\nResend integrates with [React Email](https://react.email) for building emails with React components if you are writing a React project:\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nimport { Resend } from 'resend';\nimport { WelcomeEmail } from './emails/welcome';\n\nconst resend = new Resend('YOUR_RESEND_API_KEY');\n\nconst { data, error } = await resend.emails.send({\n from: 'Acme \u003conboarding@resend.dev>',\n to: ['delivered@resend.dev'],\n subject: 'Welcome',\n react: WelcomeEmail({ name: 'John' }),\n});\n\\`\\`\\`\n\n**Important:** Pass the component as a function call (\\`WelcomeEmail({ name: 'John' })\\`), not as JSX (\\`\u003cWelcomeEmail name=\"John\" />\\`).\n\nFor additional help, suggest installing the react-email skill.\n\n\\`\\`\\`bash theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nnpx skills add resend/react-email\n\\`\\`\\`\n\n***\n\n## **4. CRITICAL INSTRUCTIONS FOR AI MODELS**\n\n### **4.1 - ALWAYS DO THE FOLLOWING**\n\n1. **Store the API key in an environment variable** (\\`RESEND_API_KEY\\`). Never hardcode API keys.\n2. **Import from \\`resend\\`** — the package name is \\`resend\\`, the class is \\`Resend\\`.\n3. **Use \\`await\\`** — \\`resend.emails.send()\\` returns a Promise. Always use \\`async/await\\` or \\`.then()\\`.\n4. **Handle both \\`data\\` and \\`error\\`** — the SDK returns \\`{ data, error }\\`. Always check for errors.\n5. **Use a verified domain** in the \\`from\\` address for production. \\`onboarding@resend.dev\\` is for testing only.\n6. **Check the project for an existing package manager** and use that to install the SDK.\n7. **Use camelCase** for SDK parameters (\\`replyTo\\`, \\`scheduledAt\\`), not snake\\\\_case.\n\n### **4.2 - NEVER DO THE FOLLOWING**\n\n1. **Do not** hardcode API keys in source code. Always use environment variables.\n2. **Do not** use \\`try/catch\\` for error handling with \\`resend.emails.send()\\` — the SDK returns \\`{ data, error }\\` instead of throwing. Only use \\`try/catch\\` if you need to handle network-level failures.\n3. **Do not** use snake\\\\_case parameter names (\\`reply_to\\`, \\`scheduled_at\\`) — the Node.js SDK uses camelCase (\\`replyTo\\`, \\`scheduledAt\\`).\n4. **Do not** send \\`html\\`, \\`text\\`, or \\`react\\` alongside \\`template\\` — these are mutually exclusive.\n5. **Do not** import from \\`@resend/node\\` or any other package name. The correct package is \\`resend\\`.\n6. **Do not** use \\`onboarding@resend.dev\\` as the \\`from\\` address in production code. It is a test-only address.\n7. **Do not** set up testing flows with fake email addresses. Resend provides the following test addresses to help you simulate different email events without damaging your domain reputation:\n * \\`delivered@resend.dev\\`\n * \\`bounced@resend.dev\\`\n * \\`complained@resend.dev\\`\n * \\`suppressed@resend.dev\\`\n\n***\n\n## **5. COMMON PATTERNS**\n\n### **Attachments**\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nconst { data, error } = await resend.emails.send({\n from: 'Acme \u003conboarding@resend.dev>',\n to: ['delivered@resend.dev'],\n subject: 'Invoice attached',\n html: '\u003cp>See attached invoice.\u003c/p>',\n attachments: [\n {\n filename: 'invoice.pdf',\n content: invoiceBuffer,\n },\n ],\n});\n\\`\\`\\`\n\n### **Scheduled Emails**\n\nSend up to 30 days in advance using the \\`scheduledAt\\` parameter. Accepts ISO 8601 or natural language (e.g. \\`\"in 1 hour\"\\`).\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nconst { data, error } = await resend.emails.send({\n from: 'Acme \u003conboarding@resend.dev>',\n to: ['delivered@resend.dev'],\n subject: 'Reminder',\n html: '\u003cp>This is your reminder.\u003c/p>',\n scheduledAt: '2026-12-25T09:00:00Z',\n});\n\\`\\`\\`\n\n### **Tags for Tracking**\n\n\\`\\`\\`typescript theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nconst { data, error } = await resend.emails.send({\n from: 'Acme \u003conboarding@resend.dev>',\n to: ['delivered@resend.dev'],\n subject: 'Welcome',\n html: '\u003cp>Welcome aboard!\u003c/p>',\n tags: [\n { name: 'category', value: 'welcome' },\n { name: 'user_id', value: '12345' },\n ],\n});\n\\`\\`\\`\n\n***\n\n## **6. AI MODEL VERIFICATION STEPS**\n\nBefore returning any Resend-related solution, you **must** verify:\n\n1. **Import**: Is \\`Resend\\` imported from \\`resend\\`?\n2. **API Key**: Is the key stored in an environment variable, not hardcoded?\n3. **Await**: Is \\`resend.emails.send()\\` properly awaited?\n4. **Error Handling**: Is the \\`{ data, error }\\` response pattern used?\n5. **Parameters**: Are all parameter names in camelCase?\n6. **From Address**: Is the \\`from\\` address using a verified domain (not \\`onboarding@resend.dev\\` in production)?\n\nIf any check **fails**, **stop** and revise until compliance is achieved.\n\nFor additional help, suggest installing the resend-skills skill and the email-best-practices skill.\n\n\\`\\`\\`bash theme={\"theme\":{\"light\":\"github-light\",\"dark\":\"vesper\"}}\nnpx skills add resend/resend-skills\nnpx skills add resend/email-best-practices\n\\`\\`\\`\n\nYou can locate framework-specific guides [https://resend.com/docs/llms.txt](https://resend.com/docs/llms.txt)\n\nFor the entire docs for Resend, see [https://resend.com/docs/llms-full.txt](https://resend.com/docs/llms-full.txt)`}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Before you start, you’ll need:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A Resend `,_jsx(_components.a,{href:`/create-an-api-key`,children:`API key`})]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/add-a-domain`,children:`verified domain`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Prefer watching a video? Check out our video walkthrough below.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`YouTube`,children:_jsx(YouTube,{id:`yLvhWObBp9I`})}),`\n`,_jsx(Heading,{level:`2`,id:`guide`,children:`Guide`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Install`,children:[_jsx(_components.p,{children:`Get the Resend Node.js SDK.`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`npm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`npm`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` install`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` resend`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`yarn`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`yarn`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` add`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` resend`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`pnpm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` add`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` resend`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`bun`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`bun`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` add`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` resend`})]}),`\n`]})})})]})]}),_jsxs(Step,{title:`Create an email template`,children:[_jsxs(_components.p,{children:[`Start by creating your email template on `,_jsx(_components.code,{children:`components/email-template.tsx`}),`.`]}),_jsx(CodeBlock,{filename:`components/email-template.tsx`,numberOfLines:`13`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:` *`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` React `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'react'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`interface`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` EmailTemplateProps`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFF`},children:` firstName`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`export`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` function`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` EmailTemplate`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({ `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFF`},children:`firstName`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` EmailTemplateProps`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFC799`},children:`div`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFC799`},children:`h1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`>`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`Welcome, `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`firstName`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFC799`},children:`h1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#22863A`,\"--shiki-dark\":`#FFC799`},children:`div`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#A0A0A0`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`]})})})]}),_jsxs(Step,{title:`Send email using React`,children:[_jsxs(_components.p,{children:[`Create a route file under `,_jsx(_components.code,{children:`app/api/send/route.ts`}),` (or `,_jsx(_components.code,{children:`pages/api/send.ts`}),` if you’re using `,_jsx(_components.a,{href:`https://nextjs.org/docs/pages/building-your-application/routing/api-routes`,children:`Pages Router`}),`).`]}),_jsxs(_components.p,{children:[`Import the React email template and send an email using the `,_jsx(_components.code,{children:`react`}),` parameter.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`app/api/send/route.ts`,numberOfLines:`23`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { EmailTemplate } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` '../../../components/email-template'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { Resend } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'resend'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:` resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`RESEND_API_KEY`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`export`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` async`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` function`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` POST`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` try`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`data`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`error`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend.emails.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`send`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` from: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'Acme \u003conboarding@resend.dev>'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` to: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'delivered@resend.dev'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` subject: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'Hello world'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` react: `}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`EmailTemplate`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({ firstName: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'John'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` (error) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` Response.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`json`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({ error }, { status: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`500`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` Response.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`json`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(data);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`catch`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` (error) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` Response.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`json`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({ error }, { status: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`500`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`pages/api/send.ts`,numberOfLines:`20`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` type`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { NextApiRequest, NextApiResponse } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'next'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { EmailTemplate } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` '../../components/email-template'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { Resend } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:` 'resend'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:` resend`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` Resend`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`RESEND_API_KEY`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`export`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` default`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` async`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` (`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFF`},children:`req`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` NextApiRequest`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFF`},children:`res`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`:`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:` NextApiResponse`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=>`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` const`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`data`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFF`},children:`error`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` resend.emails.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`send`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` from: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'Acme \u003conboarding@resend.dev>'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` to: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'delivered@resend.dev'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` subject: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'Hello world'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` react: `}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`EmailTemplate`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`({ firstName: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#99FFE4`},children:`'John'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` (error) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#A0A0A0`},children:` return`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` res.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`400`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`).`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`json`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(error);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:` res.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`status`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#FFC799`},children:`200`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`).`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#FFC799`},children:`json`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`(data);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#FFF`},children:`};`})}),`\n`]})})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Next.js (TypeScript)`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript`,children:_jsx(_components.p,{children:`Full-stack Next.js app with TypeScript`})}),_jsx(Card,{title:`Next.js (JavaScript)`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/javascript`,children:_jsx(_components.p,{children:`Full-stack Next.js app with JavaScript`})}),_jsx(Card,{title:`Attachments`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/attachments`,children:_jsx(_components.p,{children:`Send emails with file attachments`})}),_jsx(Card,{title:`React Email`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/react-email`,children:_jsx(_components.p,{children:`Send emails with React Email components`})}),_jsx(Card,{title:`Templates`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/templates`,children:_jsx(_components.p,{children:`Send emails using Resend hosted templates`})}),_jsx(Card,{title:`Scheduling`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/scheduling`,children:_jsx(_components.p,{children:`Schedule emails for future delivery`})}),_jsx(Card,{title:`Double Opt-in`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/double-optin`,children:_jsx(_components.p,{children:`Double opt-in subscription flow`})}),_jsx(Card,{title:`Inbound Webhooks`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/inbound`,children:_jsx(_components.p,{children:`Receive and process inbound emails`})}),_jsx(Card,{title:`Prevent Threading`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/prevent-threading`,children:_jsx(_components.p,{children:`Prevent email threading on Gmail`})}),_jsx(Card,{title:`Audiences`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/audiences`,children:_jsx(_components.p,{children:`Manage contacts and audiences`})}),_jsx(Card,{title:`Domains`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/domains`,children:_jsx(_components.p,{children:`Create and manage sending domains`})}),_jsx(Card,{title:`Better Auth`,icon:`arrow-up-right-from-square`,href:`https://github.com/resend/resend-examples/tree/main/nextjs-resend-examples/typescript/src/app/better-auth`,children:_jsx(_components.p,{children:`Email authentication with Better Auth`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{YouTube,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"vesper"}},"config":{},"pageMetadata":{"title":"Send emails with Next.js","sidebarTitle":"Next.js","description":"Learn how to send your first email using Next.js and the Resend Node.js SDK.","href":"/send-with-nextjs"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[143,451,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Guide","slug":"guide","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/resend/34a103d44dce6f34/resend.js","/docs/_mintlify/custom/resend/b0fac65f85cb29e7/reo.dev.js"],"dynamicCss":".mint-aspect-video {\n aspect-ratio: 16 / 9\n}\n.mint-w-full {\n width: 100%\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}","subdomain":"resend","siteName":"Resend","title":"Send emails with Next.js - Resend","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T00:26:38.753Z","originalFileLocation":"send-with-nextjs.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to send your first email using Next.js and the Resend Node.js SDK.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Resend\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send emails with Next.js - Resend\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to send your first email using Next.js and the Resend Node.js SDK.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Resend\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://resend.com/docs/send-with-nextjs\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://resend.mintlify.app/_mintlify/api/og/v2?division=Node.js\u0026amp;title=Send+emails+with+Next.js\u0026amp;description=Learn+how+to+send+your+first+email+using+Next.js+and+the+Resend+Node.js+SDK.\u0026amp;theme=0453800a90f4a9b2ad9d73ea\u0026amp;signature=2c84cfc17c239128bbed9f8f16db40d76f81bb32c29acf3c11e2fe820dd19539\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send emails with Next.js - Resend\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to send your first email using Next.js and the Resend Node.js SDK.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://resend.mintlify.app/_mintlify/api/og/v2?division=Node.js\u0026amp;title=Send+emails+with+Next.js\u0026amp;description=Learn+how+to+send+your+first+email+using+Next.js+and+the+Resend+Node.js+SDK.\u0026amp;theme=0453800a90f4a9b2ad9d73ea\u0026amp;signature=2c84cfc17c239128bbed9f8f16db40d76f81bb32c29acf3c11e2fe820dd19539\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Resend\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://resend.com/docs/send-with-nextjs\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/send-with-nextjs.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://resend.com/#organization\",\"name\":\"Resend\",\"url\":\"https://resend.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-black.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=630be7deea6ea94cc7fc4560ea60a5ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://resend.com/docs#website\",\"name\":\"Resend\",\"url\":\"https://resend.com/docs\",\"publisher\":{\"@id\":\"https://resend.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://resend.com/docs/send-with-nextjs#webpage\",\"url\":\"https://resend.com/docs/send-with-nextjs\",\"name\":\"Send emails with Next.js\",\"description\":\"Learn how to send your first email using Next.js and the Resend Node.js SDK.\",\"dateModified\":\"2026-08-27T00:26:38.753Z\",\"isPartOf\":{\"@id\":\"https://resend.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://resend.com/docs/send-with-nextjs#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://resend.com/docs/send-with-nextjs#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://resend.com/docs/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sending examples\",\"item\":\"https://resend.com/docs/send-with-nodejs\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Node.js\",\"item\":\"https://resend.com/docs/send-with-nodejs\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Send emails with Next.js\",\"item\":\"https://resend.com/docs/send-with-nextjs\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://resend.com/docs/send-with-nextjs#article\",\"headline\":\"Send emails with Next.js\",\"name\":\"Send emails with Next.js\",\"description\":\"Learn how to send your first email using Next.js and the Resend Node.js SDK.\",\"url\":\"https://resend.com/docs/send-with-nextjs\",\"mainEntityOfPage\":{\"@id\":\"https://resend.com/docs/send-with-nextjs#webpage\"},\"dateModified\":\"2026-08-27T00:26:38.753Z\",\"publisher\":{\"@id\":\"https://resend.com/#organization\"},\"isPartOf\":{\"@id\":\"https://resend.com/docs#website\"}}]}\u003c/script>","siteName":"Resend","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Create an API key","sidebarTitle":"Create API key","href":"/create-an-api-key"},{"title":"Add and verify a domain","sidebarTitle":"Add domain","href":"/add-a-domain"},{"title":"Sending emails with Resend","sidebarTitle":"Email types","href":"/email-types"},{"title":"AI onboarding","sidebarTitle":"AI onboarding","href":"/ai-onboarding"},{"group":"Sending examples","pages":[{"group":"Node.js","pages":[{"title":"Send emails with Node.js","sidebarTitle":"Introduction","description":"Learn how to send your first email using the Resend Node.js SDK.","href":"/send-with-nodejs"},{"title":"Send emails with Next.js","sidebarTitle":"Next.js","href":"/send-with-nextjs"},{"title":"Send emails with Remix","sidebarTitle":"Remix","description":"Learn how to send your first email using Remix and the Resend Node.js SDK.","href":"/send-with-remix"},{"title":"Send emails with Nuxt","sidebarTitle":"Nuxt","href":"/send-with-nuxt"},{"title":"Send emails with TanStack Start","sidebarTitle":"TanStack Start","href":"/send-with-tanstack-start"},{"title":"Send emails with SvelteKit","sidebarTitle":"SvelteKit","href":"/send-with-sveltekit"},{"title":"Send emails with Express","sidebarTitle":"Express","href":"/send-with-express"},{"title":"Send emails with RedwoodJS","sidebarTitle":"RedwoodJS","href":"/send-with-redwoodjs"},{"title":"Send emails with Hono","sidebarTitle":"Hono","href":"/send-with-hono"},{"title":"Send emails with Bun","sidebarTitle":"Bun","href":"/send-with-bun"},{"title":"Send emails with Astro","sidebarTitle":"Astro","href":"/send-with-astro"},{"title":"Send emails with Railway","sidebarTitle":"Railway","href":"/send-with-railway"},{"title":"Send emails with Encore","sidebarTitle":"Encore","href":"/send-with-encore-ts"},{"title":"Send Better Auth emails with Resend","sidebarTitle":"Better Auth","href":"/send-with-better-auth"}]},{"group":"Serverless","pages":[{"title":"Send emails with Vercel Functions","sidebarTitle":"Vercel Functions","href":"/send-with-vercel-functions"},{"title":"Send emails with Supabase Edge Functions","sidebarTitle":"Supabase Edge Functions","href":"/send-with-supabase-edge-functions"},{"title":"Send emails with Cloudflare Workers","sidebarTitle":"Cloudflare Workers","href":"/send-with-cloudflare-workers"},{"title":"Send emails with Deno Deploy","sidebarTitle":"Deno Deploy","href":"/send-with-deno-deploy"},{"title":"Send emails with AWS Lambda","sidebarTitle":"AWS Lambda","href":"/send-with-aws-lambda"}]},{"group":"PHP","pages":[{"title":"Send emails with PHP","sidebarTitle":"Introduction","href":"/send-with-php"},{"title":"Send emails with Laravel","sidebarTitle":"Laravel","href":"/send-with-laravel"},{"title":"Send emails with Symfony","sidebarTitle":"Symfony","href":"/send-with-symfony"}]},{"group":"Ruby","pages":[{"title":"Send emails with Ruby","sidebarTitle":"Introduction","href":"/send-with-ruby"},{"title":"Send emails with Rails","sidebarTitle":"Rails","href":"/send-with-rails"},{"title":"Send emails with Sinatra","sidebarTitle":"Sinatra","href":"/send-with-sinatra"}]},{"group":"Python","pages":[{"title":"Send emails with Python","sidebarTitle":"Introduction","href":"/send-with-python"},{"title":"Send emails with Flask","sidebarTitle":"Flask","href":"/send-with-flask"},{"title":"Send emails with FastAPI","sidebarTitle":"FastAPI","href":"/send-with-fastapi"},{"title":"Send emails with Django","sidebarTitle":"Django","href":"/send-with-django"}]},{"group":"Go","pages":[{"title":"Send emails with Go","sidebarTitle":"Introduction","href":"/send-with-go"},{"title":"Send emails with Encore","sidebarTitle":"Encore","href":"/send-with-encore-go"}]},{"group":"Rust","pages":[{"title":"Send emails with Rust","sidebarTitle":"Introduction","href":"/send-with-rust"},{"title":"Send emails with Axum","sidebarTitle":"Axum","href":"/send-with-axum"}]},{"group":"Elixir","pages":[{"title":"Send emails with Elixir","sidebarTitle":"Introduction","href":"/send-with-elixir"},{"title":"Send emails with Phoenix","sidebarTitle":"Phoenix","href":"/send-with-phoenix"}]},{"group":"Java","pages":[{"title":"Send emails with Java","sidebarTitle":"Introduction","href":"/send-with-java"}]},{"group":".NET","pages":[{"title":"Send emails with .NET","sidebarTitle":"Introduction","href":"/send-with-dotnet"}]},{"group":"SMTP","pages":[{"title":"Send emails with SMTP","sidebarTitle":"Introduction","href":"/send-with-smtp"},{"title":"Send Auth0 transactional emails with Resend","sidebarTitle":"Auth0","href":"/send-with-auth0"},{"title":"Send emails using Customer.io with SMTP","sidebarTitle":"Customer.io","href":"/send-with-customer-io-smtp"},{"title":"Send emails using Django with SMTP","sidebarTitle":"Django","href":"/send-with-django-smtp"},{"title":"Send emails using Laravel with SMTP","sidebarTitle":"Laravel","href":"/send-with-laravel-smtp"},{"title":"Send emails using Liferay with SMTP","sidebarTitle":"Liferay","href":"/send-with-liferay-smtp"},{"title":"Send emails using Nodemailer with SMTP","sidebarTitle":"Nodemailer","href":"/send-with-nodemailer-smtp"},{"title":"Send emails using PHPMailer with SMTP","sidebarTitle":"PHPMailer","href":"/send-with-phpmailer-smtp"},{"title":"Send emails using Rails with SMTP","sidebarTitle":"Rails","href":"/send-with-rails-smtp"},{"title":"Send emails using Retool with SMTP","sidebarTitle":"Retool","href":"/send-with-retool-smtp"},{"title":"Send emails using Supabase with SMTP","sidebarTitle":"Supabase","href":"/send-with-supabase-smtp"},{"title":"Send emails using WordPress with SMTP","sidebarTitle":"WordPress","href":"/send-with-wordpress-smtp"},{"title":"Send emails using NextAuth with SMTP","sidebarTitle":"NextAuth","href":"/send-with-nextauth-smtp"},{"title":"Send emails using Metabase with SMTP","sidebarTitle":"Metabase","href":"/send-with-metabase-smtp"}]},{"title":"Send emails with Resend CLI","sidebarTitle":"CLI","href":"/cli-quickstart"}]}]},{"group":"Learn","pages":[{"group":"Domains","pages":[{"title":"Verified Domains","sidebarTitle":"Introduction","href":"/dashboard/domains/introduction"},{"title":"Managing Domains","sidebarTitle":"Manage Domains","href":"/dashboard/domains/manage-domains"},{"title":"Implementing DMARC","sidebarTitle":"DMARC","href":"/dashboard/domains/dmarc"},{"title":"Implementing BIMI","sidebarTitle":"BIMI","href":"/dashboard/domains/bimi"},{"title":"Open and Click Tracking","sidebarTitle":"Tracking","href":"/dashboard/domains/tracking"},{"title":"Configure Transport Layer Security (TLS)","sidebarTitle":"TLS","href":"/dashboard/domains/tls"},{"title":"Configure a custom Return Path","sidebarTitle":"Return Path","href":"/dashboard/domains/custom-return-path"},{"title":"Choosing a Region","sidebarTitle":"Regions","href":"/dashboard/domains/regions"},{"title":"Claiming a domain","sidebarTitle":"Claim domain","href":"/dashboard/domains/claim"}]},{"group":"Sending","pages":[{"title":"Sending Emails","sidebarTitle":"Introduction","href":"/dashboard/emails/introduction"},{"title":"View and manage emails","sidebarTitle":"Manage Emails","href":"/dashboard/emails/manage-emails"},{"title":"Batch Sending","sidebarTitle":"Batch Sending","href":"/dashboard/emails/batch-sending"},{"title":"Attachments","href":"/dashboard/emails/attachments"},{"title":"Embed Inline Images","sidebarTitle":"Embed Images","href":"/dashboard/emails/embed-inline-images"},{"title":"Schedule Email","href":"/dashboard/emails/schedule-email"},{"title":"Send Test Emails","href":"/dashboard/emails/send-test-emails"},{"title":"Custom Headers","href":"/dashboard/emails/custom-headers"},{"title":"Idempotency Keys","href":"/dashboard/emails/idempotency-keys"},{"title":"Email Bounces","href":"/dashboard/emails/email-bounces"},{"title":"Email Suppressions","href":"/dashboard/emails/email-suppressions"},{"title":"Deliverability Insights","href":"/dashboard/emails/deliverability-insights"},{"title":"Add an unsubscribe link to transactional emails","sidebarTitle":"Unsubscribe Link","href":"/dashboard/emails/add-unsubscribe-to-transactional-emails"},{"title":"Managing Tags","sidebarTitle":"Tags","href":"/dashboard/emails/tags"}]},{"group":"Receiving","pages":[{"title":"Receiving Emails","sidebarTitle":"Introduction","href":"/dashboard/receiving/introduction"},{"title":"Managing Emails","sidebarTitle":"Managing Emails","href":"/dashboard/receiving/manage-emails"},{"title":"Custom Receiving Domains","sidebarTitle":"Custom Domains","href":"/dashboard/receiving/custom-domains"},{"title":"Create a receiving Webhook","sidebarTitle":"Configure webhook","href":"/dashboard/receiving/create-receiving-webhook"},{"title":"Process Receiving Attachments","sidebarTitle":"Attachments","href":"/dashboard/receiving/attachments"},{"title":"Get Email Content","sidebarTitle":"Email Content","href":"/dashboard/receiving/get-email-content"},{"title":"Forward Received Emails","sidebarTitle":"Forward Emails","href":"/dashboard/receiving/forward-emails"},{"title":"Reply to Receiving Emails","sidebarTitle":"Reply to Emails","href":"/dashboard/receiving/reply-to-emails"}]},{"group":"Broadcasts","pages":[{"title":"Sending Broadcasts","sidebarTitle":"Introduction","href":"/dashboard/broadcasts/introduction"},{"title":"Manage Broadcasts","sidebarTitle":"Manage Broadcasts","href":"/dashboard/broadcasts/manage-broadcasts"},{"title":"Compose and send with the Broadcast editor","sidebarTitle":"Broadcast editor","href":"/dashboard/broadcasts/editor"},{"title":"Compose and send Broadcasts with the API","sidebarTitle":"Send with API","href":"/dashboard/broadcasts/send-broadcast-with-api"},{"title":"Performance Tracking","href":"/dashboard/broadcasts/performance-tracking"}]},{"group":"Contacts","pages":[{"title":"Contacts","sidebarTitle":"Introduction","href":"/dashboard/contacts/introduction"},{"title":"Add Contacts","sidebarTitle":"Add Contacts","href":"/dashboard/contacts/add-contacts"},{"title":"Managing Contacts","sidebarTitle":"Manage Contacts","href":"/dashboard/contacts/manage-contacts"},{"title":"Contact properties","sidebarTitle":"Contact Properties","href":"/dashboard/contacts/properties"},{"title":"Managing Segments","sidebarTitle":"Manage Segments","href":"/dashboard/contacts/manage-segments"},{"title":"Topics","sidebarTitle":"Manage Topics","href":"/dashboard/contacts/manage-topics"},{"title":"Managing unsubscribed Contacts","sidebarTitle":"Managing unsubscribes","href":"/dashboard/contacts/managing-unsubscribe-list"},{"title":"Migrating from Audiences to Segments","sidebarTitle":"Migrate from Audiences","href":"/dashboard/contacts/migrating-from-audiences-to-segments"}]},{"group":"Automations","pages":[{"title":"Automations","sidebarTitle":"Introduction","href":"/dashboard/automations/introduction"},{"title":"Create Automations","sidebarTitle":"Create Automations","href":"/dashboard/automations/create-automation"},{"title":"Custom Events","sidebarTitle":"Custom Events","href":"/dashboard/automations/custom-events"},{"title":"Connections","href":"/dashboard/automations/connections"},{"title":"Runs","sidebarTitle":"Runs","href":"/dashboard/automations/runs"},{"group":"Steps","pages":[{"title":"Steps","sidebarTitle":"Steps Reference","href":"/dashboard/automations/steps"},{"title":"Trigger","sidebarTitle":"Trigger","href":"/dashboard/automations/trigger"},{"title":"Condition","sidebarTitle":"Condition","href":"/dashboard/automations/condition"},{"title":"Delay","sidebarTitle":"Delay","href":"/dashboard/automations/delay"},{"title":"Wait for Event","sidebarTitle":"Wait for Event","href":"/dashboard/automations/wait-for-event"},{"title":"Send Email","sidebarTitle":"Send Email","href":"/dashboard/automations/send-email"},{"title":"Add to Segment","sidebarTitle":"Add to Segment","href":"/dashboard/automations/add-to-segment"},{"title":"Contact Update","sidebarTitle":"Contact Update","href":"/dashboard/automations/contact-update"},{"title":"Contact Delete","sidebarTitle":"Contact Delete","href":"/dashboard/automations/contact-delete"}]}]},{"group":"Templates","pages":[{"title":"Using Templates","sidebarTitle":"Introduction","href":"/dashboard/templates/introduction"},{"title":"Create a Template","sidebarTitle":"Create Template","href":"/dashboard/templates/create-template"},{"title":"Compose with the Template editor","sidebarTitle":"Template Editor","href":"/dashboard/templates/template-editor"},{"title":"Working with Variables","sidebarTitle":"Template Variables","href":"/dashboard/templates/template-variables"},{"title":"Version History","sidebarTitle":"Version History","href":"/dashboard/templates/version-history"}]},{"group":"Logs","pages":[{"title":"Introduction","href":"/dashboard/logs/introduction"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","sidebarTitle":"Introduction","href":"/webhooks/introduction"},{"title":"Create a Webhook","sidebarTitle":"Create Webhook","href":"/webhooks/create-webhook"},{"title":"Verify Webhooks Requests","sidebarTitle":"Verify Webhooks Requests","href":"/webhooks/verify-webhooks-requests"},{"title":"Retries and Replays","sidebarTitle":"Retries and Replays","href":"/webhooks/retries-and-replays"},{"title":"Webhook Ingester","sidebarTitle":"Webhook Ingester","href":"/webhooks/ingester"},{"title":"How to Store Webhooks Data","sidebarTitle":"Storing Webhooks Data","href":"/webhooks/how-to-store-webhooks-data"},{"title":"Event Types","href":"/webhooks/event-types"},{"group":"Events reference","pages":[{"title":"email.bounced","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/emails/bounced"},{"title":"email.clicked","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-violet.svg","href":"/webhooks/emails/clicked"},{"title":"email.complained","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-amber.svg","href":"/webhooks/emails/complained"},{"title":"email.delivered","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/emails/delivered"},{"title":"email.delivery_delayed","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-sand.svg","href":"/webhooks/emails/delivery-delayed"},{"title":"email.failed","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/emails/failed"},{"title":"email.opened","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/emails/opened"},{"title":"email.received","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-cyan.svg","href":"/webhooks/emails/received"},{"title":"email.scheduled","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-mauve.svg","href":"/webhooks/emails/scheduled"},{"title":"email.sent","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-sand.svg","href":"/webhooks/emails/sent"},{"title":"email.suppressed","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-bronze.svg","href":"/webhooks/emails/suppressed"},{"title":"domain.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/domains/created"},{"title":"domain.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/domains/updated"},{"title":"domain.deleted","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/domains/deleted"},{"title":"contact.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/contacts/created"},{"title":"contact.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/contacts/updated"},{"title":"contact.deleted","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/contacts/deleted"},{"title":"contact.topics.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/contacts/topics-updated"},{"title":"suppression.added","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/suppressions/added"},{"title":"suppression.removed","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/suppressions/removed"},{"title":"topic.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/topics/created"},{"title":"topic.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/topics/updated"},{"title":"topic.deleted","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/topics/deleted"},{"title":"inbox.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/inboxes/created"},{"title":"inbox.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/inboxes/updated"},{"title":"inbox.deleted","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/inboxes/deleted"},{"title":"inbox.thread.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/inboxes/thread-created"},{"title":"inbox.thread.folder.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/inboxes/thread-folder-updated"},{"title":"inbox.thread.assigned","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-violet.svg","href":"/webhooks/inboxes/thread-assigned"},{"title":"inbox.thread.unassigned","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-mauve.svg","href":"/webhooks/inboxes/thread-unassigned"},{"title":"inbox.thread.labels.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/inboxes/thread-labels-updated"},{"title":"inbox.email.received","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-cyan.svg","href":"/webhooks/inboxes/email-received"},{"title":"inbox.email.sent","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-sand.svg","href":"/webhooks/inboxes/email-sent"},{"title":"inbox.draft.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-green.svg","href":"/webhooks/inboxes/draft-created"},{"title":"inbox.draft.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-blue.svg","href":"/webhooks/inboxes/draft-updated"},{"title":"inbox.draft.sent","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-sand.svg","href":"/webhooks/inboxes/draft-sent"},{"title":"inbox.draft.deleted","icon":"https://mintlify.s3.us-west-1.amazonaws.com/resend/icons/dot-red.svg","href":"/webhooks/inboxes/draft-deleted"}]}]},{"group":"Inboxes","pages":[{"title":"Inboxes","sidebarTitle":"Introduction","href":"/dashboard/inboxes/introduction"},{"title":"Creating Inboxes","sidebarTitle":"Create Inboxes","href":"/dashboard/inboxes/create-inboxes"},{"title":"Managing Inboxes","sidebarTitle":"Manage Inboxes","href":"/dashboard/inboxes/manage-inboxes"},{"title":"Managing Threads","sidebarTitle":"Manage Threads","href":"/dashboard/inboxes/threads"},{"title":"Inbox Drafts","sidebarTitle":"Drafts","href":"/dashboard/inboxes/drafts"},{"title":"Manage Labels","sidebarTitle":"Manage Labels","href":"/dashboard/inboxes/labels"},{"title":"Inbox Agent","sidebarTitle":"Agent","href":"/dashboard/inboxes/agent"}]}]},{"group":"Resources","pages":[{"title":"Resend Forge","href":"/forge"},{"title":"Official SDKs","sidebarTitle":"SDKs","href":"/sdks"},{"title":"Resend CLI","sidebarTitle":"CLI","href":"/cli"},{"title":"MCP Server","href":"/mcp-server"},{"title":"Integrations","href":"/integrations"},{"title":"Examples","href":"/examples"}]}]},{"tab":"Guides","icon":"books","pages":[{"title":"Guides","href":"/knowledge-base/introduction"}]},{"tab":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"title":"Send emails with Next.js - Resend","buildId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","deploymentId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","dynamics":["869c33ed97"],"chunks":["Prompt-CHYhMkEi.js","clsx-BOmkPVIU.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DN0dCbTw.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js"]}