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-workflow-guide.mdA tutorial guide for setting up a Cloudflare Worker to send transactional emails using the Resend API.Questions about a tutorial guide for setting up a Cloudflare Worker to send transactional emails using the Resend API.
examples/workers-send-emails-with-resend-cloudflare-workers-resend-email-setup-tu.textA step-by-step guide and command sequence for setting up a Cloudflare Worker to send emails using the Resend API.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for setting up a Cloudflare Worker to send emails using the Resend API.
examples/workers-send-emails-with-resend-cloudflare-workers-resend-email-setup-co.textThe npm create cloudflare command used to initialize a new Workers project for sending emails with Resend.Exact payloads, commands, or snippets shown in The npm create cloudflare command used to initialize a new Workers project for sending emails with Resend.
examples/workers-send-emails-with-resend-cloudflare-workers-resend-email-fetch-ha.textA JavaScript code example demonstrating how to use a Cloudflare Worker to send emails via the Resend API within a fetch handler.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use a Cloudflare Worker to send emails via the Resend API within a fet...
examples/workers-send-emails-with-resend-cloudflare-workers-resend-npm-install-co.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-cloudflare-workers-resend-email-send-jav.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-cloudflare-workers-resend-email-tutorial.textThe npm start command used to execute the Cloudflare Workers tutorial for sending emails via Resend.Exact payloads, commands, or snippets shown in The npm start command used to execute the Cloudflare Workers tutorial for sending emails via Resend.
examples/workers-send-emails-with-resend-cloudflare-workers-resend-api-key-enviro.textA text file containing the RESEND_API_KEY environment variable configuration required for the Workers and Resend integration.Exact payloads, commands, or snippets shown in A text file containing the RESENDAPIKEY environment variable configuration required for the Workers and Resend integr...
examples/workers-send-emails-with-resend-cloudflare-workers-resend-api-key-secret.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-cloudflare-workers-resend-email-send-jav-2.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