# Writing

Technical writing on email deliverability, transactional email architecture, and what changes when autonomous agents hold sending credentials.

## [The 2026 Stateless MCP Specification Explained: Scalable Serverless AI Tools](https://www.sadasend.com/blog/stateless-mcp-specification-2026-explained.md)

A deep architectural breakdown of the 2026-07-28 Model Context Protocol update, explaining how stateless HTTP transports eliminated sticky sessions for production AI agents.

_25 August 2026 · 2 min read · MCP, Architecture, AI agents, Serverless_

## [Local vs Remote Hosted MCP Servers: Architecture, Latency, and Deployment](https://www.sadasend.com/blog/local-vs-remote-hosted-mcp-servers.md)

Comparing local stdio MCP servers for desktop agents against remote streamable HTTP MCP servers for scalable multi-tenant SaaS platforms.

_25 August 2026 · 2 min read · MCP, DevOps, Architecture, Cloud_

## [Debugging MCP Connection Timeouts and Tool Calling Failures in Claude and Cursor](https://www.sadasend.com/blog/debugging-mcp-connection-timeouts-tool-failures.md)

A troubleshooting checklist for diagnosing and resolving MCP connection timeouts, JSON-RPC schema mismatches, and stdio pipe crashes in Claude Desktop and Cursor.

_25 August 2026 · 2 min read · MCP, Debugging, Claude, Cursor_

## [Multi-Tenant MCP Architecture for SaaS Applications: Partitioning Agent Contexts](https://www.sadasend.com/blog/multi-tenant-mcp-architecture-saas.md)

How to design multi-tenant Model Context Protocol infrastructure that isolates data, rate limits, and email credentials across thousands of enterprise customer organizations.

_25 August 2026 · 2 min read · MCP, Multi-Tenant, Architecture, SaaS_

## [The Complete Directory of Email MCP Tools and Schemas (2026 Reference Guide)](https://www.sadasend.com/blog/complete-directory-email-mcp-tools-schemas.md)

A comprehensive reference guide and JSON schema directory for email Model Context Protocol tools, including send_email, verify_domain, get_logs, and inspect_allowlist.

_25 August 2026 · 2 min read · MCP, Reference, Schemas, DevTools_

## [Model Context Protocol (MCP) Email Tutorial: Connecting Claude and Agents to SadaSend](https://www.sadasend.com/blog/mcp-email-tutorial.md)

Hands-on tutorial on setting up and querying SadaSend’s hosted MCP server (mcp.sadasend.com) in Claude Desktop, Cursor, and custom MCP clients.

_24 August 2026 · 2 min read · MCP, Claude, Tutorial, AI agents_

## [Building a Custom TypeScript MCP Server for Email: Zero to Production in 100 Lines](https://www.sadasend.com/blog/building-custom-typescript-mcp-server-email.md)

Step-by-step guide to building and deploying a production-ready Model Context Protocol (MCP) server for transactional email using @modelcontextprotocol/server and Zod.

_24 August 2026 · 3 min read · MCP, TypeScript, DevTools, Tutorial_

## [MCP vs REST APIs for AI Agents: Why Traditional API Keys Fail in Agentic Workflows](https://www.sadasend.com/blog/mcp-vs-rest-apis-for-ai-agents.md)

Why Anthropic developed the Model Context Protocol and why traditional REST APIs and static API keys create critical security and observability vulnerabilities for AI agents.

_24 August 2026 · 2 min read · MCP, REST, Security, AI agents_

## [Securing MCP Servers with Scoped OAuth and Per-Agent Permission Limits](https://www.sadasend.com/blog/securing-mcp-servers-scoped-oauth-limits.md)

A practical guide to securing Model Context Protocol servers against tool hijacking, prompt injection, and unauthorized data exfiltration using scoped OAuth tokens.

_24 August 2026 · 2 min read · MCP, Security, OAuth, AppSec_

## [Claude Desktop MCP Email Integration: Giving Claude Autonomous Email Capabilities](https://www.sadasend.com/blog/claude-desktop-mcp-email-integration.md)

Step-by-step tutorial on connecting Claude Desktop to SadaSend via the Model Context Protocol (MCP) to safely compose, triage, and send emails.

_23 August 2026 · 1 min read · Claude, MCP, Anthropic, Tutorial_

## [LangGraph State Machines for Email: Designing Human-in-the-Loop Approval Interrupts](https://www.sadasend.com/blog/langgraph-email-approval-state-machine.md)

How to build durable, asynchronous state machines in LangGraph with human-in-the-loop approval interrupts before sending emails.

_23 August 2026 · 2 min read · LangGraph, Python, State Machines, Human in the Loop_

## [OpenAI Swarm Email Delegation: Coordinating Specialist Sub-Agents with Scoped Keys](https://www.sadasend.com/blog/openai-swarm-email-delegation-architecture.md)

Designing lightweight multi-agent swarms using OpenAI Swarm patterns with dedicated triage, drafting, and sender routines.

_23 August 2026 · 2 min read · OpenAI Swarm, Python, Multi-Agent, Architecture_

## [CrewAI Email Dispatcher Agent: Multi-Agent Workflows with Human Sign-Off](https://www.sadasend.com/blog/crewai-email-agent-human-approval.md)

Architecting a collaborative multi-agent system in CrewAI with specialized research, drafting, and outbound sender agents with human-in-the-loop sign-off.

_22 August 2026 · 2 min read · CrewAI, Python, Multi-Agent, Human in the Loop_

## [Vercel AI SDK 3.x & Next.js 15: Streaming Email Tool Calling Guide](https://www.sadasend.com/blog/vercel-ai-sdk-email-tool-calling.md)

How to implement real-time streaming email tool calling in Next.js 15 App Router using the Vercel AI SDK (ai package) and Zod schema validation.

_22 August 2026 · 2 min read · Vercel AI SDK, Next.js, TypeScript, React Email_

## [LlamaIndex RAG Email Auto-Responder: Indexing Knowledge Bases for Automated Replies](https://www.sadasend.com/blog/llamaindex-rag-email-autoresponder.md)

Building an intelligent email auto-responder using LlamaIndex RAG pipelines, vector stores, and scoped email dispatch.

_22 August 2026 · 2 min read · LlamaIndex, RAG, Vector Search, Python_

## [LangChain Email Tool Calling: Safe Integration with Recipient Allowlists](https://www.sadasend.com/blog/langchain-email-tool-calling-tutorial.md)

How to build type-safe, production-ready email tools in LangChain using StructuredTool and Pydantic schemas. Includes containment boundaries and allowlists to prevent agent leaks.

_21 August 2026 · 3 min read · LangChain, Python, AI agents, Tool Calling_

## [Cursor and Windsurf Rules for AI Email Agent Development (.cursorrules Guide)](https://www.sadasend.com/blog/cursor-windsurf-rules-email-agent-development.md)

Complete .cursorrules and system prompt configuration for building safe, type-safe email agents in Cursor and Windsurf IDEs.

_21 August 2026 · 2 min read · Cursor, Windsurf, DevTools, TypeScript_

## [Preventing Infinite Email Loops in Autonomous AI Agents: Circuit Breakers and Token Buckets](https://www.sadasend.com/blog/preventing-infinite-email-loops-ai-agents.md)

Architecture patterns to prevent autonomous AI agents from entering recursive email loops, burning API quotas, and triggering spam blocklists.

_20 August 2026 · 2 min read · Security, Architecture, AI agents, Rate Limiting_

## [Semantic Routing for Outbound AI Email: Classifying Intent Before Dispatch](https://www.sadasend.com/blog/semantic-router-outbound-email-classification.md)

How to use semantic embeddings and fast classification routes to inspect agent-generated email intent before routing to production SMTP pools.

_20 August 2026 · 2 min read · Semantic Router, Python, Machine Learning, Architecture_

## [Email Agent Architecture: Designing Resilient Autonomous Communication Systems](https://www.sadasend.com/blog/email-agent-architecture.md)

High-level system design and architectural patterns for production AI agent email pipelines using Bun, BullMQ, and the Outbox Pattern.

_19 August 2026 · 2 min read · Architecture, AI agents, Bun, BullMQ, Outbox Pattern_

## [Building an AI Customer Support Agent with Email Tool Calling (Full Code Blueprint)](https://www.sadasend.com/blog/building-an-ai-customer-support-email-agent.md)

Complete production blueprint for building an autonomous customer support email agent with sentiment classification, approval queues, and safe dispatching.

_19 August 2026 · 2 min read · AI agents, Tutorial, Customer Support, LangChain_

## [What actually happens when you give an AI agent your email API key](https://www.sadasend.com/blog/giving-an-ai-agent-your-email-api-key.md)

An autonomous agent with a sending credential can email anyone, at any volume, forever. Here is the threat model, and the four key-level controls that contain it: scoped keys, recipient allowlists, approval mode and dry run.

_18 August 2026 · 5 min read · MCP, AI agents, Security_

## [How to Safely Let Agents Send Email: Defense-in-Depth for Autonomous Outbound](https://www.sadasend.com/blog/how-to-safely-let-agents-send-email.md)

Security blueprint covering prompt injection protection, human-in-the-loop approval queues, recipient boundaries, and egress rate-limiting.

_18 August 2026 · 2 min read · Security, AI agents, Guardrails, Compliance_

## [How to Give an AI Agent Email Access Without Handing Over Your Whole Account](https://www.sadasend.com/blog/how-to-give-an-ai-agent-email-access.md)

Step-by-step developer tutorial showing how to securely connect autonomous agents in LangChain, CrewAI, and Claude to email using scoped credentials and allowlists.

_17 August 2026 · 3 min read · Tutorial, AI agents, LangChain, CrewAI_

## [Best Email API for AI Agents in 2026: The Definitive Evaluation Guide](https://www.sadasend.com/blog/best-email-api-for-ai-agents.md)

The definitive technical benchmark and evaluation checklist for choosing an email service provider when autonomous LLMs are in the sending loop.

_15 August 2026 · 2 min read · AI agents, MCP, Evaluation, DevTools_

## [Indirect Prompt Injection via Email: Threat Models, Attack Vectors, and Prevention](https://www.sadasend.com/blog/indirect-prompt-injection-in-email.md)

Deep dive into indirect prompt injection attacks targeting AI email assistants, hidden CSS payloads, and credential-level defense-in-depth.

_14 August 2026 · 2 min read · Security, Prompt Injection, AI agents, Threat Modeling_

## [Indirect Prompt Injection Defense in Email: Sanitizing Inbound Content for AI](https://www.sadasend.com/blog/sanitizing-inbound-email-prompt-injection-defense.md)

How to build robust sanitization pipelines to defend AI agents and LLM email processors against indirect prompt injection, hidden text, and jailbreaks.

_13 August 2026 · 2 min read · Security, Prompt Injection, AI agents, AppSec_

## [Email Threat Modeling for SaaS: Preventing Compromised API Key Abuse](https://www.sadasend.com/blog/email-threat-modeling-saas-api-keys.md)

A comprehensive security engineering guide to threat modeling transactional email APIs, key leakage blast radiuses, and automated containment defenses.

_12 August 2026 · 2 min read · Security, Threat Modeling, AppSec, DevOps_

## [Inbound Email Webhook Parsing with LLMs: Converting Unstructured Email to JSON](https://www.sadasend.com/blog/inbound-email-webhook-parsing-llms.md)

How to ingest incoming customer emails via webhook, parse attachments, and use structured LLM outputs to generate clean JSON schemas for database storage.

_11 August 2026 · 2 min read · Inbound Email, Webhooks, LLM, Python_

## [Prisma & Drizzle Outbox Pattern: Atomic Database Transactions for Email](https://www.sadasend.com/blog/prisma-drizzle-transactional-outbox-pattern.md)

How to guarantee zero lost emails during database writes using the Transactional Outbox pattern with Prisma ORM, Drizzle, and Postgres.

_10 August 2026 · 2 min read · Prisma, Drizzle, Postgres, Architecture_

## [Supabase Edge Functions & Email Webhooks: Realtime Database Triggers](https://www.sadasend.com/blog/supabase-edge-functions-email-webhooks.md)

How to automatically trigger transactional emails on Supabase database insert events using Supabase Edge Functions and Webhooks.

_7 August 2026 · 2 min read · Supabase, Postgres, Webhooks, Serverless_

## [Deno 2.0 Transactional Email Guide: Native TypeScript Runtime](https://www.sadasend.com/blog/deno-2-transactional-email-guide.md)

How to build transactional email services using Deno 2.0, native TypeScript support, Deno.serve HTTP server, and web-standard fetch.

_6 August 2026 · 1 min read · Deno, TypeScript, DevTools, Runtime_

## [NestJS Enterprise Email Microservice with BullMQ & Redis Streams](https://www.sadasend.com/blog/nestjs-email-microservice-bullmq-redis.md)

Architecting an enterprise-grade transactional email microservice in NestJS using BullMQ job queues, Redis streams, and exponential backoff retry policies.

_4 August 2026 · 2 min read · NestJS, BullMQ, Redis, Enterprise_

## [SvelteKit & Astro Email Integration: Modern Zero-Bloat Sending](https://www.sadasend.com/blog/sveltekit-astro-email-integration-guide.md)

How to integrate transactional email into SvelteKit form actions and Astro server endpoints with zero JavaScript bundle overhead on the client.

_3 August 2026 · 2 min read · SvelteKit, Astro, TypeScript, WebDev_

## [Go (Golang) Microservice for Email with Circuit Breakers & Retries](https://www.sadasend.com/blog/golang-email-microservice-circuit-breakers.md)

Building an enterprise-grade Go email microservice featuring Sony GoBreaker circuit breakers, exponential backoff retries, and structured slog telemetry.

_31 July 2026 · 2 min read · Go, Golang, Microservices, Resilience_

## [Cloudflare Workers & Hono at the Edge: Ultra-Low Latency Email Dispatch](https://www.sadasend.com/blog/cloudflare-workers-hono-edge-email-dispatch.md)

Deploying global, ultra-low latency transactional email routing at the edge using Cloudflare Workers, Hono, and SadaSend.

_30 July 2026 · 1 min read · Cloudflare, Hono, Edge, Serverless_

## [FastAPI & Python 3.12 Email Agent with Pydantic Validation](https://www.sadasend.com/blog/fastapi-python-email-agent-pydantic.md)

Building high-concurrency transactional email microservices in FastAPI using Python 3.12, async HTTP clients, and Pydantic v2 schemas.

_28 July 2026 · 2 min read · FastAPI, Python, Pydantic, Microservices_

## [Remix & React Router v7 Email Architecture: Server Actions and Loaders](https://www.sadasend.com/blog/remix-react-router-v7-email-architecture.md)

How to architect transactional email flows in Remix and React Router v7 using action functions, Zod validation, and scoped API keys.

_24 July 2026 · 2 min read · Remix, React Router, TypeScript, WebDev_

## [React Email Component Library Guide: Responsive Bulletproof Templates](https://www.sadasend.com/blog/react-email-component-library-guide.md)

A comprehensive developer guide to building responsive, bulletproof transactional email templates in React with Tailwind CSS and @react-email.

_23 July 2026 · 2 min read · React Email, Tailwind, Design, TypeScript_

## [Sending Transactional Email in Next.js 15 (App Router & React Email)](https://www.sadasend.com/blog/nextjs-15-transactional-email-react-email.md)

How to build type-safe transactional email pipelines in Next.js 15 App Router using Server Actions, React Email component rendering, and SadaSend.

_21 July 2026 · 2 min read · Next.js, React Email, TypeScript, Server Actions_

## [Resend vs SadaSend: Which Developer Email API is Best for Your Stack?](https://www.sadasend.com/blog/resend-vs-sadasend-developer-guide.md)

An objective 2026 comparison between Resend and SadaSend, evaluating developer experience, React Email support, AI agent security guardrails, and pricing.

_17 July 2026 · 2 min read · Resend, Comparison, Email API, DevTools_

## [SadaSend vs AgentMail: Production Deliverability vs Throwaway Inboxes](https://www.sadasend.com/blog/sadasend-vs-agentmail.md)

Comparing two approaches to agent email: disposable virtual test inboxes vs production transactional deliverability with per-key guardrails.

_14 July 2026 · 2 min read · Comparison, AgentMail, AI agents, Deliverability_

## [SadaSend vs Resend: The Email API for AI Agents vs Human Developers](https://www.sadasend.com/blog/sadasend-vs-resend.md)

Resend was built for human developers pasting API keys into web frameworks. SadaSend is built for autonomous AI agents that hallucinate, loop, and require hard key-level ceilings.

_10 July 2026 · 3 min read · Comparison, Resend, Email API, AI agents_

## [SadaSend vs Postmark: When to Move Beyond Traditional Transactional Email](https://www.sadasend.com/blog/sadasend-vs-postmark.md)

Postmark built the standard for human transactional email. But when autonomous AI agents hold sending keys, you need per-key allowlists, approval queues, and native MCP support.

_7 July 2026 · 2 min read · Comparison, Postmark, Transactional Email, AI agents_

## [SadaSend vs Twilio SendGrid: Agent-Native Guardrails vs Legacy MTA](https://www.sadasend.com/blog/sadasend-vs-sendgrid.md)

Why next-generation AI agent workflows struggle on legacy MTAs like Twilio SendGrid and how modern agent-first infrastructure differs.

_3 July 2026 · 2 min read · Comparison, SendGrid, Email Infrastructure, Enterprise_

## [BIMI and VMC Certificates: Getting Your Verified Logo into Gmail and Apple Mail](https://www.sadasend.com/blog/bimi-vmc-certificates-verified-logo-email.md)

A complete guide to Brand Indicators for Message Identification (BIMI), SVG Tiny P.S. formatting, and Verified Mark Certificates (VMC) for email trust.

_30 June 2026 · 2 min read · BIMI, VMC, Deliverability, Design_

## [MTA-STS and TLS-RPT in 2026: Enforcing Strict Email Transit Encryption](https://www.sadasend.com/blog/mta-sts-tls-rpt-email-security-guide.md)

How to implement MTA Strict Transport Security (MTA-STS, RFC 8461) and TLS Reporting (TLS-RPT, RFC 8460) to prevent Man-in-the-Middle email tampering.

_26 June 2026 · 1 min read · MTA-STS, TLS-RPT, Security, DNS_

## [How to Warm Up Dedicated IP Pools for High-Volume Transactional Sending](https://www.sadasend.com/blog/warm-up-dedicated-ip-pools-transactional-email.md)

A mathematical guide and daily volume schedule for warming up dedicated IP addresses without triggering ISP spam throttling or reputation degradation.

_23 June 2026 · 2 min read · Deliverability, IP Warmup, DevOps, Email Infrastructure_

## [Migrating from AWS SES to SadaSend: Bypassing Sandbox Limits & IAM Complexity](https://www.sadasend.com/blog/migrating-from-aws-ses-to-sadasend.md)

How to escape AWS SES sandbox restrictions, bypass complex IAM policies, and migrate to SadaSend for superior deliverability and modern developer experience.

_19 June 2026 · 2 min read · AWS, SES, Migration, Cloud_

## [Migrating from Mailgun to SadaSend in 10 Minutes (Step-by-Step Guide)](https://www.sadasend.com/blog/migrating-from-mailgun-to-sadasend.md)

How to migrate your transactional email infrastructure from Mailgun to SadaSend with zero downtime, simple REST API mapping, and DNS verification.

_16 June 2026 · 2 min read · Mailgun, Migration, Email API, DevOps_

## [How to Send Transactional Email with Bun and TypeScript (Zero Dependencies)](https://www.sadasend.com/blog/bun-typescript-transactional-email.md)

A complete guide to sending fast, type-safe transactional emails in Bun using native fetch and the lightweight SadaSend SDK with zero bloated dependencies.

_12 June 2026 · 2 min read · Bun, TypeScript, Tutorial, DevTools_

## [Building a transactional email queue on Bun and BullMQ without losing messages](https://www.sadasend.com/blog/transactional-email-queue-bun-bullmq-outbox.md)

BullMQ cannot enlist in a Postgres transaction, so "row written, job never enqueued" is a real failure mode — a silently dropped email. The outbox pattern, jobId deduplication, and the Redis setting that quietly deletes your jobs.

_9 June 2026 · 4 min read · Bun, BullMQ, Postgres, Architecture_

## [How to Implement RFC 8058 One-Click Unsubscribe Headers in React Email](https://www.sadasend.com/blog/rfc-8058-one-click-unsubscribe-react-email.md)

A technical implementation guide for RFC 8058 List-Unsubscribe and List-Unsubscribe-Post headers to ensure full compliance with Google and Yahoo sender policies.

_5 June 2026 · 2 min read · RFC 8058, Deliverability, Compliance, React Email_

## [Gmail, Yahoo and Microsoft now reject non-compliant mail. The 2026 checklist](https://www.sadasend.com/blog/gmail-yahoo-sender-requirements-2026.md)

Since November 2025 the major mailbox providers reject non-compliant bulk mail outright rather than filtering it to spam. The requirements, the 5,000/day threshold, the 0.30% complaint ceiling, and how to check whether you are already affected.

_2 June 2026 · 3 min read · Compliance, Deliverability_

## [Dedicated IP vs Shared IP for Email: When Do You Actually Need One?](https://www.sadasend.com/blog/dedicated-ip-vs-shared-ip-email.md)

An engineering breakdown of email IP reputation, warming curves, volume thresholds, and when upgrading to a dedicated IP helps vs harms your deliverability.

_29 May 2026 · 2 min read · Deliverability, DevOps, Email Infrastructure_

## [Nodemailer vs Native Fetch in 2026: Why Modern Runtimes Abandoned Legacy SMTP](https://www.sadasend.com/blog/nodemailer-vs-native-fetch-2026.md)

An architectural analysis comparing legacy Nodemailer direct SMTP sockets against modern native fetch REST email APIs in Bun, Node.js 22, and Deno.

_26 May 2026 · 2 min read · Node, Bun, Architecture, SMTP_

## [Nodemailer in production: what breaks, and what to do about it](https://www.sadasend.com/blog/nodemailer-in-production.md)

Nodemailer is the right library and the wrong architecture for production sending. The failures that show up at scale — synchronous sends, no idempotency, lost retries, missing suppression — and how to fix each one.

_22 May 2026 · 4 min read · Node, Bun, Architecture_

## [Why your transactional email goes to spam](https://www.sadasend.com/blog/why-transactional-email-goes-to-spam.md)

Password resets and receipts land in spam for different reasons than marketing mail. Reputation is shared across your domain, warm-up cannot be skipped, and the fixes are mostly not about content.

_19 May 2026 · 3 min read · Deliverability, Reputation_

## [The Complete Guide to SPF, DKIM, and DMARC Alignment in 2026](https://www.sadasend.com/blog/complete-spf-dkim-dmarc-guide.md)

Exhaustive DNS and deliverability guide covering modern mailbox provider enforcement (Gmail, Yahoo, Microsoft 365) and strict DMARC alignment.

_15 May 2026 · 2 min read · Deliverability, DNS, SPF, DKIM, DMARC_

## [SPF, DKIM and DMARC: what each one actually does](https://www.sadasend.com/blog/spf-dkim-dmarc-explained.md)

SPF authorises servers, DKIM signs messages, DMARC decides what happens when they disagree. A practical guide to configuring all three correctly, including the ten-lookup limit and why alignment is the part that breaks.

_12 May 2026 · 4 min read · Deliverability, DNS, Authentication_
