Skip to content
DEVELOPER GUIDES

Transactional email guides,
from setup to delivery.

Transactions, retries, authentication, and delivery evidence. Work through runnable examples, inspect the failure cases, and check the primary sources.

Start with what you need.

Browse all guides →

Install and use Stampwing

Follow the product setup from your first Test request to Live readiness.

  1. Start with a Test connection
  2. Install from source
  3. Connect Node.js or Next.js
  4. Prepare live sending

Get integration help

Find the exact contract, recover from errors, or give an AI assistant context.

  1. Check API fields and permissions
  2. Troubleshoot setup and sending
  3. Set up with an AI assistant
  4. Connect your AI assistant to your workspace

Build your first email flow

Start with the request, then connect and test it.

  1. Understand the API
  2. Connect a Next.js route
  3. Prepare a reset email
  4. Test without sending

Build an email feature

Run a local example, then connect the pattern to your app.

  1. Build a contact form
  2. Customize Supabase auth emails
  3. Confirm a paid Stripe order
  4. Connect a Cloudflare Worker

All developer guides

25 guides · Practical answers, with examples

Engineering

Connect your assistant with MCP

Connect Claude, Codex, or ChatGPT through MCP, with preview setup for Cursor and GitHub Copilot editors and CLIs. Choose access to templates, automations, and email.

17 min read
Engineering

Send your first Stampwing Test request

Choose the right setup path, create a project and Test key, submit one simulated email, and verify the saved message.

7 min read
Engineering

Install the app, database, and demo worker

A complete local source setup with prerequisites, environment values, PostgreSQL, migrations, the web app, workers, and recovery checks.

7 min read
Engineering

Install the SDK and connect your backend

Install the prebuilt TypeScript SDK, send with a verified Test key, connect a server module, and add templates and signed webhooks.

7 min read
Engineering

Verify your domain and prepare live sending

Prepare a sending domain, understand automatic account and provider setup, choose Live permissions, and verify real delivery evidence.

6 min read
Engineering

HTTP API reference for your first integration

Exact endpoint paths, single-recipient fields, permissions, idempotency rules, response semantics, templates, and feature boundaries.

7 min read
Engineering

Find the failed step and recover safely

Practical fixes for installation errors, missing keys, wrong environments, validation failures, limits, queued mail, DNS, and uncertain outcomes.

7 min read
Engineering

Give your AI assistant the right setup context

A copyable setup prompt, installation decision table, failure recovery rules, and evidence-based handoff for AI coding assistants.

20 min read
Architecture

Choose an email API with a practical evaluation worksheet

Compare email APIs using your application’s failure cases, project boundaries, delivery evidence, and total operating cost. Includes a repeatable evaluation worksheet.

6 min read
Engineering

Build a contact form that handles failures

Build a local Next.js contact form with server validation, a fixed recipient, spam checks, rate limiting, and honest submission states.

7 min read
Engineering

Diagnose expired or already-used magic links

Reproduce scanner clicks, single-use token reuse, and expiry in a local lab, then design a confirmation flow with clear recovery behavior.

6 min read
Templates

Prepare every Supabase authentication email

Choose dashboard templates or the Send Email Hook, preview six authentication flows, and test signatures and email-change mappings locally.

7 min read
Engineering

Turn paid Checkout events into one confirmation

Verify Stripe webhooks, wait for successful payment, and use a PostgreSQL outbox to avoid duplicate order confirmations in a local simulation.

8 min read
Deliverability

Find wrong DNS records before changing policy

Diagnose duplicate SPF records, DKIM proxy settings, wrong hostnames, and DMARC alignment with synthetic records and a read-only worksheet.

8 min read
Engineering

Build a Worker with a bounded email request

Run a Cloudflare Worker locally with credential checks, validated input, and bounded simulated sending, then plan a provider API connection.

7 min read
Architecture

Plan cutover, uncertainty, and rollback

Practice provider cutover with persistent routing, suppressions, stable cohorts, and rollback in a local PostgreSQL simulation.

9 min read
Engineering

Email API contracts, retries, and delivery evidence

Learn how a transactional email API handles authentication, queues, retries, and delivery events. Try a local cURL example that sends no real email.

9 min read
Deliverability

Trace a missing email after SMTP acceptance

Trace a missing transactional email from API request to receiving server. A practical checklist for queues, bounces, spam, quarantine, and uncertain sends.

7 min read
Architecture

Project boundaries and shared sending limits

Design a manageable email setup for multiple SaaS apps: project-specific keys, sending domains, Test and Live environments, webhooks, limits, and ownership.

10 min read
Engineering

Idempotency, outboxes, and ambiguous timeouts

Use durable business events and idempotency keys to recover from email API timeouts. Includes a runnable no-send lab for lost responses and conflicting retries.

10 min read
Templates

Password reset templates and token lifecycle

Download a free password reset email in HTML and plain text. Includes subject lines, fallback links, expiry copy, accessibility notes, and implementation checks.

7 min read
Engineering

Email tests: contracts, faults, and invariants

A practical testing strategy for email templates, API calls, retries, and webhooks. Includes a local mock server and clear limits on what simulation proves.

7 min read
Deliverability

SPF, DKIM, and DMARC identity alignment

Understand sending domains, SPF, DKIM selectors, and DMARC alignment with DNS commands, examples, and a practical troubleshooting sequence.

9 min read
Engineering

Next.js email routes and durable handoff

Build a Next.js App Router email flow with a safe local fixture, stable request keys, server-side calls, error handling, and a message status lookup.

7 min read
Engineering

Signed webhooks and durable event processing

Verify signed email webhooks, commit events before acknowledging them, deduplicate retries, and preserve out-of-order observations. Includes a receiver and replay fixture.

8 min read