send-email

Send single or batch transactional emails via the Resend API.

161|10|Updated Sep 24, 2021
One-click install
npx skills add https://github.com/curvenote/curvenote --skill send-email-curvenote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: send-email
Source: https://github.com/curvenote/curvenote/tree/main/.agents/skills/resend/send-email
Command: npx skills add https://github.com/curvenote/curvenote --skill send-email-curvenote

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams reliably deliver transactional emails (welcome messages, order confirmations, password resets, receipts) by guiding the integration with the Resend API.

Core Features & Use Cases

  • Single Email: Send one email via POST /emails with idempotency support to prevent duplicates.
  • Batch Email: Send up to 100 emails per request via POST /emails/batch for bulk notifications, with per-email validation.
  • Reliability Practices: Implement idempotency keys, error handling, and exponential backoff for transient failures (429, 500).
  • Guided Deployment: Includes installation steps and references for SDKs in Node, Python, Go, and curl for quick testing.

Quick Start

  1. Detect your project language and install the Resend SDK (e.g., npm i resend, pip install resend) or use cURL per references/installation.md.
  2. Implement a single email or a batch email flow using the appropriate endpoint, including an idempotency key.
  3. Test with safe addresses and review error handling, retries, and delivery settings.

Frequently Asked Questions about send-email

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send transactional emails using the Resend API in Node.js or Python?

To send transactional emails with the Resend API, install the appropriate SDK for your language, such as the Resend Node.js or Python package, and implement a POST request to the /emails endpoint. Include an idempotency key to prevent duplicate sends.

How do I send batch transactional emails via the Resend API?

Batch sending is supported by making a POST request to the Resend API /emails/batch endpoint. You can send up to 100 emails per request, but you must perform per-email input validation before sending the payload.

How does idempotency key usage work when sending transactional emails?

Idempotency keys prevent duplicate transactional emails by ensuring the API treats repeated requests as a single operation. You include a unique idempotency key in your request header so transient failures or retries do not result in multiple identical emails.

What is the best retry strategy for Resend API 429 and 500 errors?

The recommended retry strategy for Resend API 429 and 500 errors is implementing exponential backoff. This approach systematically increases the delay between retry attempts to handle transient failures without overwhelming the API.

Can I use the Resend API with Go and curl for testing transactional emails?

Yes, the Resend API supports integration with Go and curl workflows. You can install the Go SDK or use curl commands directly to quickly test sending transactional emails to safe addresses and review delivery settings.

Why do I need per-email validation for batch sending with the Resend API?

Per-email validation is required for batch sending because the Resend API processes up to 100 emails in a single request. Validating each email individually before sending ensures your payload is correctly formatted and prevents batch failures.