What will you build?
Developers use Mailhooks to turn inbound email into real-time events โ here's what they're building.

Popular use cases
The most common ways developers integrate Mailhooks
E2E Email Testing
No more flaky email tests. No shared inboxes. No sleep().
Each test gets its own inbox โ no race conditions in parallel CI. Wait for emails deterministically, not with polling. Auto-extract magic links and OTPs without regex.
Learn more
// Inbox per test โ no shared state
const inbox = await mh.inboxes.create()
await page.fill("#email", inbox.address)
await page.click('Sign up')
// Server-side wait โ no polling
const msg = await mh.inboxes
.waitForMessage(inbox.id)
โ Magic link auto-extracted
await page.goto(msg.extracted.magicLink)
โ Test passed (2.1s)
Using @mailhooks/sdk ยท npm i @mailhooks/sdk
AI Agent Mailbox
Give every AI agent its own email address with instant delivery.
No IMAP polling or shared inbox conflicts. Each agent gets a dedicated address with webhook or SSE delivery in milliseconds.
Learn more
$ mailhooks emails wait-for \
--to agent-07@co.mailhooks.email
โณ Waiting for email...
โ From: sarah@acme-corp.com
Subject: Partnership opportunity
$ mailhooks emails content em_abc123
"Looking for an email partner..."
Using @mailhooks/cli ยท npx @mailhooks/cli
More ways to use Mailhooks
Every inbound email problem has a solution
Developer guides
Learn about inbound email and how email-to-webhook works.
Compare Mailhooks to alternatives
See how Mailhooks compares to other inbound email services.
Don't see your use case?
Mailhooks works with any application that can receive webhooks or call an API. Get started and see how it fits your workflow.
