Developer-First REST & GraphQL Email API

The Modern Email API Built for Developers

Send transactional emails, trigger event-driven notifications, and receive signed webhooks with sub-100ms API latency. Zero vendor lock-in with multi-provider failover.

<95ms
Avg Dispatch Latency
99.99%
Delivery SLA Uptime
3,000
Free Emails / Month
15-30 Days
Payload Log Retention

Send your first email in under 60 seconds

Install the package, set your API key, and dispatch. Complete type definitions included.

app/api/send/route.ts
import { Mailofly } from "@mailofly/node";
import { NextResponse } from "next/server";

const mailofly = new Mailofly({
  apiKey: process.env.MAILOFLY_API_KEY!,
});

export async function POST(req: Request) {
  const { email, name } = await req.json();

  const result = await mailofly.emails.send({
    from: "Acme <onboarding@yourdomain.com>",
    to: [email],
    subject: `Welcome to Acme, ${name}!`,
    html: "<h1>Welcome aboard!</h1><p>Your workspace is ready.</p>",
    tags: [{ name: "category", value: "onboarding" }],
  });

  return NextResponse.json(result);
}
Reliable Infrastructure

Engineered for High-Volume Production Apps

From your first verification code to millions of monthly receipts, Mailofly provides the developer primitives you need.

Sub-100ms Dispatch Latency

Engineered on globally distributed edge runtime handlers. Your transactional API requests are processed and accepted in tens of milliseconds.

Multi-Provider Failover

Zero single point of failure. Mailofly dynamically routes traffic across AWS SES, Mailgun, and SendGrid fallback backbones if an upstream provider degrades.

Automated Deliverability Alignment

Automatic SPF, DKIM (2048-bit), and DMARC enforcement. Clean IP warming and bounce suppression protect your sender reputation from day one.

15-30 Day Searchable Log Retention

Inspect complete payload headers, delivery attempts, SMTP response codes, and recipient activity. 15 days on free, 30 days on paid plans.

Standard Webhooks with Signatures

Deliver status events (delivered, opened, clicked, bounced, complained) to your servers with cryptographic HMAC-SHA256 Standard Webhook verification.

MCP Server for AI Agents

First email infrastructure with an official Model Context Protocol (MCP) server. Let Claude, Cursor, or your autonomous AI agents safely draft and send emails.

Ecosystem

Native Integration with Modern Frameworks

Drop Mailofly into your existing project without rewriting your auth or email business logic.

Next.jsFull-Stack Framework

First-class support in App Router, Server Components, and Server Actions.

SupabaseDatabase & Backend

Trigger transactional emails directly from Postgres database webhooks or Edge Functions.

Node.js & ExpressBackend Runtime

Lightweight, zero-dependency Node client with complete TypeScript declarations.

Python & FastAPIData & API Services

Asynchronous client for high-concurrency event pipelines and background workers.

Why Developers Are Switching to Mailofly

More capabilities, longer log retention, and fair transparent pricing.

FeatureMailoflyResendSendGrid
Free tier volume3,000 / mo3,000 / mo100 / day (Trial)
Log retention15–30 days1–3 days3 days
Multi-provider failoverNative built-inNo (single vendor)No
Official MCP AI ServerIncludedNoNo
Universal SMTP RelayIncludedIncludedIncluded
Common Questions

Frequently Asked Questions about our Email API

An email API is a RESTful HTTP service that allows software applications to programmatically compose, send, and monitor emails without manually running an SMTP mail transfer agent. Instead of managing sockets and mail servers, your application sends a JSON payload to `https://api.mailofly.com/v1/emails` with authentication headers, and Mailofly handles delivery, DNS alignment, encryption, and tracking.

Start Sending with the Mailofly API Today

Sign up in 30 seconds. Get your API keys, verify your sending domain, and ship your emails.