Get started
Introduction
MailCraft is the email API for developers — and their agents. Send transactional email, run campaigns and automations, and manage contacts with one API, ten SDKs and an MCP server.
Send your first email
- 1. Add and verify a domain, then a sender on it.
- 2. Create an API key under Settings → API keys and export it as
MAILCRAFT_API_KEY. - 3. Send:
terminal
curl https://api.mailcraft.host/v1/emails \
-X POST \
-H "Authorization: Bearer $MAILCRAFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Hello from MailCraft",
"html": "<p>It works!</p>"
}'Quickstart
Every SDK follows the same shape — install, set a key, send.
Node.js Send email from Node.js and TypeScript with the official MailCraft SDK.PHP Send email from any PHP 8.2+ application with the official MailCraft SDK.Laravel A Laravel mail driver — keep using Mail::send and your Mailables, delivered by MailCraft.Python SoonSend email from Python 3.9+ with a typed, lightweight client.Ruby SoonSend email from Ruby and Rails applications.Go SoonA lightweight, dependency-free Go client for the MailCraft API.Java SoonSend email from Java 17+ and Spring applications..NET SoonSend email from C# and .NET 6+ applications.Rust SoonAn async Rust crate for the MailCraft API, built on tokio.Elixir SoonSend email from Elixir, with a Swoosh adapter for Phoenix apps.
Explore
EmailsSend transactional email through the REST API.DomainsVerify a domain so your email is signed and trusted.WebhooksGet delivery, open, click and bounce events in real time.AutomationsBuild drip sequences and enroll contacts from your app.MCP serverLet Claude, Cursor or Codex use MailCraft for you.API referenceEvery endpoint, with a live "Try it" console.
Learn
Plain-language guides to how email actually works.
Domains & DNSWhat each DNS record does and how to set them up.AuthenticationSPF, DKIM and DMARC — and why inboxes check all three.DeliverabilityReputation, bounces and throttling, explained plainly.SecurityTLS encryption for email in transit, and scoped keys.Email fundamentalsHeaders, MIME parts and the anatomy of a message.ComplianceCAN-SPAM, GDPR and unsubscribe handling done right.