[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1NSSCV18PKXT8G5HD3SQP":3,"skill-same:01M6K1NSSCV18PKXT8G5HD3SQP":131},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":108,"commitSha":109,"skillDirectory":110,"forksCount":111,"repositoryHtmlUrl":112,"repositoryHomepageUrl":6,"ownerHtmlUrl":113,"ownerBlogUrl":114,"ownerDescription":115,"updatedAt":116,"install":117,"resources":130},"01M6K1NSSCV18PKXT8G5HD3SQP","email",null,"Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.","NagyVikt\u002Fcodex-plugins","NagyVikt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137165288?v=4","01M6K0SJ3R2DAZRJKJJS10VN87","Viktor Nagy","01M6K0SJ9HXN0GBD91QDQ9WNVV",2,"MIT","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Femail\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"campaign","scheduled","retry","loading","billing","retries","app","map","mailgun","resend","orchestration","up","schedule","api","SET","batch","react","components","workflow","2026-11-10 10:12:30",false,"---\nname: email\ndescription: Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.\nmetadata:\n  priority: 4\n  docs:\n    - \"https:\u002F\u002Fresend.com\u002Fdocs\"\n    - \"https:\u002F\u002Freact.email\u002Fdocs\u002Fintroduction\"\n  sitemap: \"https:\u002F\u002Fresend.com\u002Fsitemap.xml\"\n  pathPatterns:\n    - 'emails\u002F**'\n    - 'src\u002Femails\u002F**'\n    - 'components\u002Femails\u002F**'\n    - 'src\u002Fcomponents\u002Femails\u002F**'\n    - 'app\u002Fapi\u002Fsend\u002F**'\n    - 'src\u002Fapp\u002Fapi\u002Fsend\u002F**'\n    - 'app\u002Fapi\u002Femail\u002F**'\n    - 'src\u002Fapp\u002Fapi\u002Femail\u002F**'\n    - 'app\u002Fapi\u002Femails\u002F**'\n    - 'src\u002Fapp\u002Fapi\u002Femails\u002F**'\n    - 'lib\u002Fresend.*'\n    - 'src\u002Flib\u002Fresend.*'\n    - 'lib\u002Femail.*'\n    - 'src\u002Flib\u002Femail.*'\n    - 'lib\u002Femail*'\n    - 'src\u002Flib\u002Femail*'\n    - '**\u002Femail-template*'\n  bashPatterns:\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bresend\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bresend\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bresend\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*\\bresend\\b'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@react-email\u002F'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@react-email\u002F'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@react-email\u002F'\n    - '\\byarn\\s+add\\s+[^\\n]*@react-email\u002F'\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*react-email\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*react-email\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*react-email\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*react-email\\b'\nretrieval:\n  aliases:\n    - send email\n    - transactional email\n    - resend\n    - react email\n  intents:\n    - send email\n    - set up email\n    - create email template\n    - verify domain for email\n  entities:\n    - Resend\n    - React Email\n    - transactional\n    - domain verification\nchainTo:\n  -\n    pattern: 'from\\s+[''\\\"](nodemailer)[''\"]|require\\s*\\(\\s*[''\\\"](nodemailer)[''\"]|from\\s+[''\"\"]@sendgrid\u002Fmail[''\"\"]|from\\s+[''\"\"]mailgun[-.\"]|from\\s+[''\"\"]postmark[''\"\"]|createTransport\\s*\\('\n    targetSkill: email\n    message: 'Legacy email library detected (nodemailer\u002FSendGrid\u002FMailgun\u002FPostmark) — use Resend with React Email for native Vercel Marketplace integration, unified billing, and JSX email templates.'\n  -\n    pattern: 'setTimeout\\s*\\(|setInterval\\s*\\(|cron\\.schedule'\n    targetSkill: workflow\n    message: 'Delayed or scheduled email logic detected — loading Workflow DevKit for durable execution with pause, resume, and retries.'\n  -\n    pattern: '(retries|retryCount|attempts|maxRetries)\\s*[=:\u003C]|catch\\s*\\([^)]*\\)\\s*\\{[^}]*(retry|resend)'\n    targetSkill: workflow\n    message: 'Manual retry logic in email handler — loading Workflow DevKit for durable retries with backoff.'\n    skipIfFileContains: \"createWorkflow|use workflow|use step\"\n  -\n    pattern: 'for\\s*\\([^)]*emails|\\.map\\s*\\([^)]*send|Promise\\.all\\s*\\([^)]*send|batch.*emails?|campaign'\n    targetSkill: workflow\n    message: 'Batch or campaign email orchestration detected — loading Workflow DevKit for durable step-based orchestration with pause\u002Fresume.'\n    skipIfFileContains: \"createWorkflow|use workflow|use step\"\n\n---\n\n# Email Integration (Resend + React Email)\n\nYou are an expert in sending emails from Vercel-deployed applications — covering Resend (native Vercel Marketplace integration), React Email templates, domain verification, and transactional email patterns.\n\n## Vercel Marketplace Setup (Recommended)\n\nResend is a native Vercel Marketplace integration with auto-provisioned API keys and unified billing.\n\n### Install via Marketplace\n\n```bash\n# Install Resend from Vercel Marketplace (auto-provisions env vars)\nvercel integration add resend\n```\n\nAuto-provisioned environment variables:\n- `RESEND_API_KEY` — server-side API key for sending emails\n\n### SDK Setup\n\n```bash\n# Install the Resend SDK\nnpm install resend\n\n# Install React Email for building templates\nnpm install react-email @react-email\u002Fcomponents\n```\n\n### Initialize the Client\n\nCurrent Resend SDK version: **6.9.x** (actively maintained, weekly downloads ~1.6M).\n\n```ts\n\u002F\u002F lib\u002Fresend.ts\nimport { Resend } from \"resend\";\n\nexport const resend = new Resend(process.env.RESEND_API_KEY);\n```\n\n## Sending Emails\n\n### Basic API Route\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fsend\u002Froute.ts\nimport { NextResponse } from \"next\u002Fserver\";\nimport { resend } from \"@\u002Flib\u002Fresend\";\n\nexport async function POST(req: Request) {\n  const { to, subject, html } = await req.json();\n\n  const { data, error } = await resend.emails.send({\n    from: \"Your App \u003Chello@yourdomain.com>\",\n    to,\n    subject,\n    html,\n  });\n\n  if (error) {\n    return NextResponse.json({ error }, { status: 400 });\n  }\n\n  return NextResponse.json({ id: data?.id });\n}\n```\n\n### Send with React Email Template\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fsend\u002Froute.ts\nimport { NextResponse } from \"next\u002Fserver\";\nimport { resend } from \"@\u002Flib\u002Fresend\";\nimport WelcomeEmail from \"@\u002Femails\u002Fwelcome\";\n\nexport async function POST(req: Request) {\n  const { name, email } = await req.json();\n\n  const { data, error } = await resend.emails.send({\n    from: \"Your App \u003Chello@yourdomain.com>\",\n    to: email,\n    subject: \"Welcome!\",\n    react: WelcomeEmail({ name }),\n  });\n\n  if (error) {\n    return NextResponse.json({ error }, { status: 400 });\n  }\n\n  return NextResponse.json({ id: data?.id });\n}\n```\n\n## React Email Templates\n\n### Template Structure\n\nOrganize templates in an `emails\u002F` directory at the project root:\n\n```\nemails\u002F\n  welcome.tsx\n  invoice.tsx\n  reset-password.tsx\n```\n\n### Example Template\n\n```tsx\n\u002F\u002F emails\u002Fwelcome.tsx\nimport {\n  Body,\n  Container,\n  Head,\n  Heading,\n  Html,\n  Link,\n  Preview,\n  Text,\n} from \"@react-email\u002Fcomponents\";\n\ninterface WelcomeEmailProps {\n  name: string;\n}\n\nexport default function WelcomeEmail({ name }: WelcomeEmailProps) {\n  return (\n    \u003CHtml>\n      \u003CHead \u002F>\n      \u003CPreview>Welcome to our platform\u003C\u002FPreview>\n      \u003CBody style={{ fontFamily: \"sans-serif\", backgroundColor: \"#f6f9fc\" }}>\n        \u003CContainer style={{ padding: \"40px 20px\", maxWidth: \"560px\" }}>\n          \u003CHeading>Welcome, {name}!\u003C\u002FHeading>\n          \u003CText>\n            Thanks for signing up. Get started by visiting your{\" \"}\n            \u003CLink href=\"https:\u002F\u002Fyourdomain.com\u002Fdashboard\">dashboard\u003C\u002FLink>.\n          \u003C\u002FText>\n        \u003C\u002FContainer>\n      \u003C\u002FBody>\n    \u003C\u002FHtml>\n  );\n}\n```\n\n### Preview Templates Locally\n\n```bash\n# Start the React Email dev server to preview templates\nnpx react-email dev\n```\n\nThis opens a browser preview at `http:\u002F\u002Flocalhost:3000` where you can view and iterate on email templates with hot reload.\n\n### Upload Templates to Resend (React Email 5.0)\n\n```bash\n# Upload templates directly from the CLI\nnpx react-email@latest resend setup\n```\n\nPaste your API key when prompted — templates are uploaded and available in the Resend dashboard.\n\n### Dark Mode Support (React Email 5.x)\n\nReact Email 5.x (latest 5.2.9, `@react-email\u002Fcomponents` 1.0.8) supports dark mode with a theming system tested across popular email clients. Now also supports **React 19.2** and **Next.js 16**. Use the `Tailwind` component with Tailwind CSS v4 for email styling:\n\n```tsx\nimport { Tailwind } from \"@react-email\u002Fcomponents\";\n\nexport default function MyEmail() {\n  return (\n    \u003CTailwind>\n      \u003Cdiv className=\"bg-white dark:bg-gray-900 text-black dark:text-white\">\n        \u003Ch1>Hello\u003C\u002Fh1>\n      \u003C\u002Fdiv>\n    \u003C\u002FTailwind>\n  );\n}\n```\n\n**Upgrade note (v4 → v5)**: Replace all `renderAsync` with `render`. The Tailwind component now only supports Tailwind CSS v4.\n\n## Domain Verification\n\nTo send from a custom domain (not `onboarding@resend.dev`), verify your domain in Resend:\n\n1. Go to [Resend Domains](https:\u002F\u002Fresend.com\u002Fdomains)\n2. Add your domain\n3. Add the DNS records (MX, SPF, DKIM) to your domain provider\n4. Wait for verification (usually under 5 minutes)\n\nUntil your domain is verified, use `onboarding@resend.dev` as the `from` address for testing.\n\n## Common Patterns\n\n### Batch Sending\n\n```ts\nconst { data, error } = await resend.batch.send([\n  {\n    from: \"hello@yourdomain.com\",\n    to: \"user1@example.com\",\n    subject: \"Update\",\n    html: \"\u003Cp>Content for user 1\u003C\u002Fp>\",\n  },\n  {\n    from: \"hello@yourdomain.com\",\n    to: \"user2@example.com\",\n    subject: \"Update\",\n    html: \"\u003Cp>Content for user 2\u003C\u002Fp>\",\n  },\n]);\n```\n\n### Server Action\n\n```ts\n\"use server\";\nimport { resend } from \"@\u002Flib\u002Fresend\";\nimport WelcomeEmail from \"@\u002Femails\u002Fwelcome\";\n\nexport async function sendWelcomeEmail(name: string, email: string) {\n  const { error } = await resend.emails.send({\n    from: \"Your App \u003Chello@yourdomain.com>\",\n    to: email,\n    subject: \"Welcome!\",\n    react: WelcomeEmail({ name }),\n  });\n\n  if (error) throw new Error(\"Failed to send email\");\n}\n```\n\n### Broadcast API (February 2026)\n\nSend emails to audiences (mailing lists) managed in Resend:\n\n```ts\n\u002F\u002F Send a broadcast to an audience\nconst { data, error } = await resend.broadcasts.send({\n  audienceId: \"aud_1234\",\n  from: \"updates@yourdomain.com\",\n  subject: \"Monthly Newsletter\",\n  react: NewsletterEmail({ month: \"March\" }),\n});\n\n\u002F\u002F Create and manage broadcasts programmatically\nconst broadcast = await resend.broadcasts.create({\n  audienceId: \"aud_1234\",\n  from: \"updates@yourdomain.com\",\n  subject: \"Product Update\",\n  react: ProductUpdateEmail(),\n});\n\n\u002F\u002F Schedule for later\nawait resend.broadcasts.send({\n  broadcastId: broadcast.data?.id,\n  scheduledAt: \"2026-03-15T09:00:00Z\",\n});\n```\n\n### Idempotency Keys\n\nPrevent duplicate sends on retries by passing an `Idempotency-Key` header:\n\n```ts\nconst { data, error } = await resend.emails.send(\n  {\n    from: \"hello@yourdomain.com\",\n    to: \"user@example.com\",\n    subject: \"Order Confirmation\",\n    react: OrderConfirmation({ orderId: \"ord_123\" }),\n  },\n  {\n    headers: {\n      \"Idempotency-Key\": `order-confirmation-ord_123`,\n    },\n  }\n);\n```\n\nResend deduplicates requests with the same idempotency key within a 24-hour window. Use deterministic keys derived from your business logic (e.g., `order-confirmation-${orderId}`).\n\n### Webhook Management API\n\nCreate and manage webhooks programmatically instead of through the dashboard:\n\n```ts\n\u002F\u002F Create a webhook endpoint\nconst { data } = await resend.webhooks.create({\n  url: \"https:\u002F\u002Fyourdomain.com\u002Fapi\u002Fwebhook\u002Fresend\",\n  events: [\"email.delivered\", \"email.bounced\", \"email.complained\", \"email.suppressed\"],\n});\n\n\u002F\u002F List all webhooks\nconst webhooks = await resend.webhooks.list();\n\n\u002F\u002F Delete a webhook\nawait resend.webhooks.remove(webhookId);\n```\n\n### Email Status: \"suppressed\"\n\nResend now tracks a `\"suppressed\"` delivery status for recipients on suppression lists (previous hard bounces or spam complaints). Check for this in webhook events alongside delivered\u002Fbounced\u002Fcomplained.\n\n### Webhook for Delivery Events\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fwebhook\u002Fresend\u002Froute.ts\nimport { NextResponse } from \"next\u002Fserver\";\n\nexport async function POST(req: Request) {\n  const event = await req.json();\n\n  switch (event.type) {\n    case \"email.delivered\":\n      \u002F\u002F Track successful delivery\n      break;\n    case \"email.bounced\":\n      \u002F\u002F Handle bounce — remove from mailing list\n      break;\n    case \"email.complained\":\n      \u002F\u002F Handle spam complaint — unsubscribe user\n      break;\n  }\n\n  return NextResponse.json({ received: true });\n}\n```\n\n## Environment Variables\n\n| Variable | Scope | Description |\n|----------|-------|-------------|\n| `RESEND_API_KEY` | Server | Resend API key (starts with `re_`) |\n\n## Cross-References\n\n- **Marketplace install and env var provisioning** → `⤳ skill: marketplace`\n- **API route patterns** → `⤳ skill: routing-middleware`\n- **Environment variable management** → `⤳ skill: env-vars`\n- **Serverless function config** → `⤳ skill: vercel-functions`\n\n## Official Documentation\n\n- [Resend + Vercel Marketplace](https:\u002F\u002Fvercel.com\u002Fmarketplace\u002Fresend)\n- [Resend Documentation](https:\u002F\u002Fresend.com\u002Fdocs)\n- [Resend Next.js Quickstart](https:\u002F\u002Fresend.com\u002Fdocs\u002Fsend-with-nextjs)\n- [React Email Documentation](https:\u002F\u002Freact.email\u002Fdocs\u002Fintroduction)\n- [React Email Components](https:\u002F\u002Freact.email\u002Fdocs\u002Fcomponents\u002Fhtml)\n","# Email Integration (Resend + React Email)\n\nYou are an expert in sending emails from Vercel-deployed applications — covering Resend (native Vercel Marketplace integration), React Email templates, domain verification, and transactional email patterns.\n\n## Vercel Marketplace Setup (Recommended)\n\nResend is a native Vercel Marketplace integration with auto-provisioned API keys and unified billing.\n\n### Install via Marketplace\n\n```bash\n# Install Resend from Vercel Marketplace (auto-provisions env vars)\nvercel integration add resend\n```\n\nAuto-provisioned environment variables:\n- `RESEND_API_KEY` — server-side API key for sending emails\n\n### SDK Setup\n\n```bash\n# Install the Resend SDK\nnpm install resend\n\n# Install React Email for building templates\nnpm install react-email @react-email\u002Fcomponents\n```\n\n### Initialize the Client\n\nCurrent Resend SDK version: **6.9.x** (actively maintained, weekly downloads ~1.6M).\n\n```ts\n\u002F\u002F lib\u002Fresend.ts\nimport { Resend } from \"resend\";\n\nexport const resend = new Resend(process.env.RESEND_API_KEY);\n```\n\n## Sending Emails\n\n### Basic API Route\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fsend\u002Froute.ts\nimport { NextResponse } from \"next\u002Fserver\";\nimport { resend } from \"@\u002Flib\u002Fresend\";\n\nexport async function POST(req: Request) {\n  const { to, subject, html } = await req.json();\n\n  const { data, error } = await resend.emails.send({\n    from: \"Your App \u003Chello@yourdomain.com>\",\n    to,\n    subject,\n    html,\n  });\n\n  if (error) {\n    return NextResponse.json({ error }, { status: 400 });\n  }\n\n  return NextResponse.json({ id: data?.id });\n}\n```\n\n### Send with React Email Template\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fsend\u002Froute.ts\nimport { NextResponse } from \"next\u002Fserver\";\nimport { resend } from \"@\u002Flib\u002Fresend\";\nimport WelcomeEmail from \"@\u002Femails\u002Fwelcome\";\n\nexport async function POST(req: Request) {\n  const { name, email } = await req.json();\n\n  const { data, error } = await resend.emails.send({\n    from: \"Your App \u003Chello@yourdomain.com>\",\n    to: email,\n    subject: \"Welcome!\",\n    react: WelcomeEmail({ name }),\n  });\n\n  if (error) {\n    return NextResponse.json({ error }, { status: 400 });\n  }\n\n  return NextResponse.json({ id: data?.id });\n}\n```\n\n## React Email Templates\n\n### Template Structure\n\nOrganize templates in an `emails\u002F` directory at the project root:\n\n```\nemails\u002F\n  welcome.tsx\n  invoice.tsx\n  reset-password.tsx\n```\n\n### Example Template\n\n```tsx\n\u002F\u002F emails\u002Fwelcome.tsx\nimport {\n  Body,\n  Container,\n  Head,\n  Heading,\n  Html,\n  Link,\n  Preview,\n  Text,\n} from \"@react-email\u002Fcomponents\";\n\ninterface WelcomeEmailProps {\n  name: string;\n}\n\nexport default function WelcomeEmail({ name }: WelcomeEmailProps) {\n  return (\n    \u003CHtml>\n      \u003CHead \u002F>\n      \u003CPreview>Welcome to our platform\u003C\u002FPreview>\n      \u003CBody style={{ fontFamily: \"sans-serif\", backgroundColor: \"#f6f9fc\" }}>\n        \u003CContainer style={{ padding: \"40px 20px\", maxWidth: \"560px\" }}>\n          \u003CHeading>Welcome, {name}!\u003C\u002FHeading>\n          \u003CText>\n            Thanks for signing up. Get started by visiting your{\" \"}\n            \u003CLink href=\"https:\u002F\u002Fyourdomain.com\u002Fdashboard\">dashboard\u003C\u002FLink>.\n          \u003C\u002FText>\n        \u003C\u002FContainer>\n      \u003C\u002FBody>\n    \u003C\u002FHtml>\n  );\n}\n```\n\n### Preview Templates Locally\n\n```bash\n# Start the React Email dev server to preview templates\nnpx react-email dev\n```\n\nThis opens a browser preview at `http:\u002F\u002Flocalhost:3000` where you can view and iterate on email templates with hot reload.\n\n### Upload Templates to Resend (React Email 5.0)\n\n```bash\n# Upload templates directly from the CLI\nnpx react-email@latest resend setup\n```\n\nPaste your API key when prompted — templates are uploaded and available in the Resend dashboard.\n\n### Dark Mode Support (React Email 5.x)\n\nReact Email 5.x (latest 5.2.9, `@react-email\u002Fcomponents` 1.0.8) supports dark mode with a theming system tested across popular email clients. Now also supports **React 19.2** and **Next.js 16**. Use the `Tailwind` component with Tailwind CSS v4 for email styling:\n\n```tsx\nimport { Tailwind } from \"@react-email\u002Fcomponents\";\n\nexport default function MyEmail() {\n  return (\n    \u003CTailwind>\n      \u003Cdiv className=\"bg-white dark:bg-gray-900 text-black dark:text-white\">\n        \u003Ch1>Hello\u003C\u002Fh1>\n      \u003C\u002Fdiv>\n    \u003C\u002FTailwind>\n  );\n}\n```\n\n**Upgrade note (v4 → v5)**: Replace all `renderAsync` with `render`. The Tailwind component now only supports Tailwind CSS v4.\n\n## Domain Verification\n\nTo send from a custom domain (not `onboarding@resend.dev`), verify your domain in Resend:\n\n1. Go to [Resend Domains](https:\u002F\u002Fresend.com\u002Fdomains)\n2. Add your domain\n3. Add the DNS records (MX, SPF, DKIM) to your domain provider\n4. Wait for verification (usually under 5 minutes)\n\nUntil your domain is verified, use `onboarding@resend.dev` as the `from` address for testing.\n\n## Common Patterns\n\n### Batch Sending\n\n```ts\nconst { data, error } = await resend.batch.send([\n  {\n    from: \"hello@yourdomain.com\",\n    to: \"user1@example.com\",\n    subject: \"Update\",\n    html: \"\u003Cp>Content for user 1\u003C\u002Fp>\",\n  },\n  {\n    from: \"hello@yourdomain.com\",\n    to: \"user2@example.com\",\n    subject: \"Update\",\n    html: \"\u003Cp>Content for user 2\u003C\u002Fp>\",\n  },\n]);\n```\n\n### Server Action\n\n```ts\n\"use server\";\nimport { resend } from \"@\u002Flib\u002Fresend\";\nimport WelcomeEmail from \"@\u002Femails\u002Fwelcome\";\n\nexport async function sendWelcomeEmail(name: string, email: string) {\n  const { error } = await resend.emails.send({\n    from: \"Your App \u003Chello@yourdomain.com>\",\n    to: email,\n    subject: \"Welcome!\",\n    react: WelcomeEmail({ name }),\n  });\n\n  if (error) throw new Error(\"Failed to send email\");\n}\n```\n\n### Broadcast API (February 2026)\n\nSend emails to audiences (mailing lists) managed in Resend:\n\n```ts\n\u002F\u002F Send a broadcast to an audience\nconst { data, error } = await resend.broadcasts.send({\n  audienceId: \"aud_1234\",\n  from: \"updates@yourdomain.com\",\n  subject: \"Monthly Newsletter\",\n  react: NewsletterEmail({ month: \"March\" }),\n});\n\n\u002F\u002F Create and manage broadcasts programmatically\nconst broadcast = await resend.broadcasts.create({\n  audienceId: \"aud_1234\",\n  from: \"updates@yourdomain.com\",\n  subject: \"Product Update\",\n  react: ProductUpdateEmail(),\n});\n\n\u002F\u002F Schedule for later\nawait resend.broadcasts.send({\n  broadcastId: broadcast.data?.id,\n  scheduledAt: \"2026-03-15T09:00:00Z\",\n});\n```\n\n### Idempotency Keys\n\nPrevent duplicate sends on retries by passing an `Idempotency-Key` header:\n\n```ts\nconst { data, error } = await resend.emails.send(\n  {\n    from: \"hello@yourdomain.com\",\n    to: \"user@example.com\",\n    subject: \"Order Confirmation\",\n    react: OrderConfirmation({ orderId: \"ord_123\" }),\n  },\n  {\n    headers: {\n      \"Idempotency-Key\": `order-confirmation-ord_123`,\n    },\n  }\n);\n```\n\nResend deduplicates requests with the same idempotency key within a 24-hour window. Use deterministic keys derived from your business logic (e.g., `order-confirmation-${orderId}`).\n\n### Webhook Management API\n\nCreate and manage webhooks programmatically instead of through the dashboard:\n\n```ts\n\u002F\u002F Create a webhook endpoint\nconst { data } = await resend.webhooks.create({\n  url: \"https:\u002F\u002Fyourdomain.com\u002Fapi\u002Fwebhook\u002Fresend\",\n  events: [\"email.delivered\", \"email.bounced\", \"email.complained\", \"email.suppressed\"],\n});\n\n\u002F\u002F List all webhooks\nconst webhooks = await resend.webhooks.list();\n\n\u002F\u002F Delete a webhook\nawait resend.webhooks.remove(webhookId);\n```\n\n### Email Status: \"suppressed\"\n\nResend now tracks a `\"suppressed\"` delivery status for recipients on suppression lists (previous hard bounces or spam complaints). Check for this in webhook events alongside delivered\u002Fbounced\u002Fcomplained.\n\n### Webhook for Delivery Events\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fwebhook\u002Fresend\u002Froute.ts\nimport { NextResponse } from \"next\u002Fserver\";\n\nexport async function POST(req: Request) {\n  const event = await req.json();\n\n  switch (event.type) {\n    case \"email.delivered\":\n      \u002F\u002F Track successful delivery\n      break;\n    case \"email.bounced\":\n      \u002F\u002F Handle bounce — remove from mailing list\n      break;\n    case \"email.complained\":\n      \u002F\u002F Handle spam complaint — unsubscribe user\n      break;\n  }\n\n  return NextResponse.json({ received: true });\n}\n```\n\n## Environment Variables\n\n| Variable | Scope | Description |\n|----------|-------|-------------|\n| `RESEND_API_KEY` | Server | Resend API key (starts with `re_`) |\n\n## Cross-References\n\n- **Marketplace install and env var provisioning** → `⤳ skill: marketplace`\n- **API route patterns** → `⤳ skill: routing-middleware`\n- **Environment variable management** → `⤳ skill: env-vars`\n- **Serverless function config** → `⤳ skill: vercel-functions`\n\n## Official Documentation\n\n- [Resend + Vercel Marketplace](https:\u002F\u002Fvercel.com\u002Fmarketplace\u002Fresend)\n- [Resend Documentation](https:\u002F\u002Fresend.com\u002Fdocs)\n- [Resend Next.js Quickstart](https:\u002F\u002Fresend.com\u002Fdocs\u002Fsend-with-nextjs)\n- [React Email Documentation](https:\u002F\u002Freact.email\u002Fdocs\u002Fintroduction)\n- [React Email Components](https:\u002F\u002Freact.email\u002Fdocs\u002Fcomponents\u002Fhtml)\n",{"name":5,"chainTo":43,"metadata":57,"retrieval":94,"description":7},[44,47,50,54],{"message":45,"pattern":46,"targetSkill":5},"Legacy email library detected (nodemailer\u002FSendGrid\u002FMailgun\u002FPostmark) — use Resend with React Email for native Vercel Marketplace integration, unified billing, and JSX email templates.","from\\s+['\\\"](nodemailer)['\"]|require\\s*\\(\\s*['\\\"](nodemailer)['\"]|from\\s+['\"\"]@sendgrid\u002Fmail['\"\"]|from\\s+['\"\"]mailgun[-.\"]|from\\s+['\"\"]postmark['\"\"]|createTransport\\s*\\(",{"message":48,"pattern":49,"targetSkill":37},"Delayed or scheduled email logic detected — loading Workflow DevKit for durable execution with pause, resume, and retries.","setTimeout\\s*\\(|setInterval\\s*\\(|cron\\.schedule",{"message":51,"pattern":52,"targetSkill":37,"skipIfFileContains":53},"Manual retry logic in email handler — loading Workflow DevKit for durable retries with backoff.","(retries|retryCount|attempts|maxRetries)\\s*[=:\u003C]|catch\\s*\\([^)]*\\)\\s*\\{[^}]*(retry|resend)","createWorkflow|use workflow|use step",{"message":55,"pattern":56,"targetSkill":37,"skipIfFileContains":53},"Batch or campaign email orchestration detected — loading Workflow DevKit for durable step-based orchestration with pause\u002Fresume.","for\\s*\\([^)]*emails|\\.map\\s*\\([^)]*send|Promise\\.all\\s*\\([^)]*send|batch.*emails?|campaign",{"docs":58,"sitemap":61,"priority":62,"bashPatterns":63,"pathPatterns":76},[59,60],"https:\u002F\u002Fresend.com\u002Fdocs","https:\u002F\u002Freact.email\u002Fdocs\u002Fintroduction","https:\u002F\u002Fresend.com\u002Fsitemap.xml",4,[64,65,66,67,68,69,70,71,72,73,74,75],"\\bnpm\\s+(install|i|add)\\s+[^\\n]*\\bresend\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*\\bresend\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*\\bresend\\b","\\byarn\\s+add\\s+[^\\n]*\\bresend\\b","\\bnpm\\s+(install|i|add)\\s+[^\\n]*@react-email\u002F","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@react-email\u002F","\\bbun\\s+(install|i|add)\\s+[^\\n]*@react-email\u002F","\\byarn\\s+add\\s+[^\\n]*@react-email\u002F","\\bnpm\\s+(install|i|add)\\s+[^\\n]*react-email\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*react-email\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*react-email\\b","\\byarn\\s+add\\s+[^\\n]*react-email\\b",[77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],"emails\u002F**","src\u002Femails\u002F**","components\u002Femails\u002F**","src\u002Fcomponents\u002Femails\u002F**","app\u002Fapi\u002Fsend\u002F**","src\u002Fapp\u002Fapi\u002Fsend\u002F**","app\u002Fapi\u002Femail\u002F**","src\u002Fapp\u002Fapi\u002Femail\u002F**","app\u002Fapi\u002Femails\u002F**","src\u002Fapp\u002Fapi\u002Femails\u002F**","lib\u002Fresend.*","src\u002Flib\u002Fresend.*","lib\u002Femail.*","src\u002Flib\u002Femail.*","lib\u002Femail*","src\u002Flib\u002Femail*","**\u002Femail-template*",{"aliases":95,"intents":99,"entities":103},[96,97,28,98],"send email","transactional email","react email",[96,100,101,102],"set up email","create email template","verify domain for email",[104,105,106,107],"Resend","React Email","transactional","domain verification","main","9a4409c8751439c3aeeea2bc3940ba05dc3cd3b5","plugins\u002Fvercel\u002Fskills\u002Femail",0,"https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FNagyVikt","https:\u002F\u002Fwebu.hu\u002F","Codex is a tool they said...\r\n\r\nCreator of GitGuardex, CueCards. Tech stack: Next.js · TypeScript · Rust · Linux. ","2026-03-30 02:19:53",{"source":8,"skillName":5,"commands":118,"prompt":128,"zipAvailable":129},[119,122,125],{"tool":120,"command":121},"npx","npx skills add NagyVikt\u002Fcodex-plugins --skill email",{"tool":123,"command":124},"bunx","bunx skills add NagyVikt\u002Fcodex-plugins --skill email",{"tool":126,"command":127},"pnpm","pnpm dlx skills add NagyVikt\u002Fcodex-plugins --skill email","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Femail\u002FSKILL.md",true,[],[132,156,177,200,220,242],{"skillNo":133,"name":37,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":38},"01M6K1ZEN8P9R2S6NPNJNJ8JVH","Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[37,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,24,155],"workflows","create","run","streaming","logs","start","why","loop","wait for","branch","auto","log","conversation","human","lib","condition","rendering","sleep",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":38},"01M6K1Z71NWFSPHK2VJJ73MVSY","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[158,163,141,164,32,165,147,166,167,168,169,170,171,25,172,173,174,175,22,176],"auth","routing middleware","projects","user story","full stack","jest","local","project","end","false","unit","error","middleware","unit test",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":38},"01M6K1YPRYJS3BQEDP8HKBHPEJ","vercel-storage","Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[184,185,186,187,140,188,189,148,190,191,192,193,194,195,25,152,196,197,198,199],"storage","vercel storage","vercel","config","supabase","migrate","router","clerk","expert","prisma","connection pooling","neon","turso","upstash","URL","auth0",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":38},"01M6K1YFEP0GPPGMQ3D0FPTS27","vercel-services","Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[207,208,186,209,210,33,211,212,213,214,30,108,215,216,170,217,25,218,174,219],"vercel services","services","frontend","docker compose","configure","monorepo","go api","fastapi","aws lambda","go backend","get","apps","python backend",{"skillNo":221,"name":222,"nameZh":6,"description":223,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":224,"categories":225,"keywords":226,"publishedAt":38},"01M6K1Y8S3CRD43DPKX0PK1MTT","vercel-sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[227,228,186,229,230,139,140,231,232,233,234,235,236,237,238,239,22,240,222,241],"sandbox","vercel sandbox","safe","ai agents","code","ai sdk","Code Generation","playground","generated","spawn","install","runner","io","child","student",{"skillNo":243,"name":244,"nameZh":6,"description":245,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":246,"categories":247,"keywords":248,"publishedAt":38},"01M6K1Y1J8S7AN97H75SHBGF7J","vercel-queues","Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60\u002F1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-queues\u002FSKILL.md",[],[249,186,37,138,141,250,33,32,211,30,251,252,253,254,25,152,255,24,22,256],"vercel queues","beta","message","delivery","across","worker","processing","at"]