Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Send Emails With Resend

A step-by-step tutorial for integrating the Resend SDK into a Cloudflare Worker to send transactional emails, including DNS configuration for domain verification and securing API keys using Worker secrets.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Send Emails With Resend

A step-by-step tutorial for integrating the Resend SDK into a Cloudflare Worker to send transactional emails, including DNS configuration for domain verification and securing API keys using Worker secrets.

When To Use

Use when you need to implement a workflow for sending transactional emails from a Cloudflare Worker using the Resend service and require guidance on DNS verification and secret management.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-send-emails-with-resend-index-workflow-guide.mdA tutorial guide for configuring Cloudflare Workers to send transactional emails using the Resend API.Questions about a tutorial guide for configuring Cloudflare Workers to send transactional emails using the Resend API.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-email-tu.textA step-by-step tutorial guide for integrating Resend email services within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A step-by-step tutorial guide for integrating Resend email services within a Cloudflare Workers environment.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-email-se.textThe npm create command used to initialize a new Cloudflare Workers project configured for Resend email integration.Exact payloads, commands, or snippets shown in The npm create command used to initialize a new Cloudflare Workers project configured for Resend email integration.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-email-fe.textA JavaScript code snippet demonstrating how to implement a fetch handler in a Cloudflare Worker to send emails using the Resend API.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to implement a fetch handler in a Cloudflare Worker to send emails using...
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-npm-inst.textThe npm installation command required to add the Resend library to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The npm installation command required to add the Resend library to a Cloudflare Workers project.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-email-se-2.textA JavaScript code example demonstrating how to use the Resend SDK within a Cloudflare Worker to send an email.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the Resend SDK within a Cloudflare Worker to send an email.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-email-se-3.textA step-by-step tutorial guide for integrating Resend with Cloudflare Workers to send emails.Exact payloads, commands, or snippets shown in A step-by-step tutorial guide for integrating Resend with Cloudflare Workers to send emails.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-api-key-.textA text file containing the RESEND_API_KEY environment variable configuration required for the Cloudflare Workers Resend tutorial.Exact payloads, commands, or snippets shown in A text file containing the RESENDAPIKEY environment variable configuration required for the Cloudflare Workers Resend...
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-api-key--2.textA command-line instruction for adding a Resend API key to Cloudflare Workers using the Wrangler CLI.Exact payloads, commands, or snippets shown in A command-line instruction for adding a Resend API key to Cloudflare Workers using the Wrangler CLI.
examples/workers-send-emails-with-resend-index-cloudflare-workers-resend-email-se-4.textA JavaScript example demonstrating how to use the Resend SDK within a Cloudflare Worker to send an email.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the Resend SDK within a Cloudflare Worker to send an email.

What This Skill Covers

  • In this tutorial, you will learn how to send transactional emails from Workers using Resend ↗. At the end of this tutorial, you’ll be able to:
  • Main sections: Tags, Prerequisites, Create a Worker project, Add your domain to Resend, Send emails from your Worker.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/tutorials/send-emails-with-resend/index.md