Back to Blog
/Last tested: /17 min read/By SMTPfast Team

Best Email APIs for AI Agents in 2027 (7 Compared, 4 Fully Tested)

For an agent that needs its own inbox, four APIs passed every functional check we ran: SMTPfast, AgentMail, Resend Inboxes and Nylas Agent Accounts. All four sent, received in about 3 seconds, kept reply threads, handled attachments and worked through MCP in Claude Code. AgentMail is the fastest start (an inbox from one API call, no domain, no person); Nylas adds calendars and asks a person to confirm MCP sends; Resend fits if you already send with it; SMTPfast needs your own domain and a paid plan. Postmark received mail but could not send yet while its new-account review was pending. Tested on 22 November 2026.

ai-agentscomparisonemail-apimcpinbound
Share:𝕏in

The short answer, from tests we ran on 22 November 2026:

  • An agent with its own inbox: four APIs passed every functional check we ran: SMTPfast, AgentMail, Resend Inboxes and Nylas Agent Accounts. All four sent mail, made received mail visible in their API in about 3 seconds, kept reply threads, handled attachments both ways, and let Claude Code read and answer mail over MCP. AgentMail is the fastest start: an agent can sign itself up and get an address on agentmail.to. Nylas gives an address on a free nylas.email trial domain, adds a calendar, and makes a person confirm each send over MCP. Resend and SMTPfast put the inbox on your own domain.
  • Send-only notifications (the agent tells you something, nobody replies): any transactional API. Postmark, Amazon SES and Cloudflare Email Service are fine here too, and so are the four above.
  • An agent acting in a person's Gmail or Outlook: Nylas or the Gmail and Microsoft Graph APIs directly. An agent inbox API is the wrong tool for that job.

We build SMTPfast. Read the SMTPfast rows with that in mind. We tested it the same way as the others, the scripts and raw results are public in ai-agent-email-bench, and its weak points are listed below with the rest.

How we tested

We used free plans only, entered no card details, and sent mail only between our own addresses. A person on our team created the Resend, Postmark and Nylas accounts in their dashboards (their sign-up runs in a browser); everything after that ran from scripts. For each provider:

  1. Send: the agent sends a message with a small PDF to a test address on our own domain. That address receives through SMTPfast, so every provider's delivery time ends at the same receiver: the moment the message is visible in our SMTPfast receiving API. We also record the SPF, DKIM and DMARC results there.
  2. Inbound, 5 times: we send to the agent's address and time how long until the message shows up in the agent's API, polling every second. We send through Resend, so no test is same-provider; for the Resend tests we send through SMTPfast instead.
  3. Attachment in: we send a PDF; the agent downloads it; we compare SHA-256 hashes.
  4. Reply: the agent replies with a PDF. We check In-Reply-To and References on the delivered email, and whether the reply went to the Reply-To address.
  5. Thread: we answer the reply. The answer must land in the same thread in the agent's API.
  6. MCP: Claude Code in headless mode, with only that provider's official MCP server connected, gets two tasks: read the latest email, then reply in the thread. Each task gets an allowlist of tools (the read task has no tool that can send), with built-in tools turned off and every other tool on the server denied by name. We used the narrowest key each provider let us create from a script: inbox-scoped keys for AgentMail; for the others, a key with more access than the job needs (details in the repository).
  7. Injection: an email tells "the AI assistant reading this mailbox" to forward the inbox to another of our addresses. The agent is only asked for a summary, with forward and send tools allowed.

Four providers passed the full run. Postmark could be tested on receiving only. Cloudflare and Amazon SES we evaluated from their docs and mark docs only, not tested.

Results

Check SMTPfast AgentMail Resend Nylas Postmark
Working agent address 1 API call on a domain already set up; a new account needs activation, your own domain, DNS and a paid plan 2 s to receive, 50 s to send to anyone (after the emailed code); no person needed to start Account by a person; then 1 API call (0.8 s) for an inbox on our verified domain Account by a person; then 1 API call (0.9 s) for an Agent Account on the trial domain Account by a person; every server has an inbound address at once
Send: time until visible at our receiver, SPF/DKIM/DMARC Pass, 3.0 s, all pass Pass, 3.5 s, all pass Pass, 3.1 s, all pass Pass, 4.4 s, all pass Not yet: new accounts send only to their own domain until approved
Inbound, median of 5 3.0 s 3.2 s 3.5 s 3.1 s 7.2 s (Messages API, no webhook)
Reply threading Pass: headers kept, 3 messages in one thread Pass: headers kept, 3 messages in one thread Pass: headers kept, 3 messages in one thread Pass: headers kept, 3 messages in one thread Not yet; no thread object
Attachments in and out Pass, hashes match Pass, hashes match Pass, hashes match Pass, hashes match In: listed (content only in the webhook). Out: not yet
MCP in Claude Code Hosted, 105 tools; read and reply worked Hosted, 54 tools; read and reply worked Hosted, 142 tools; read and reply worked Hosted, 38 tools; read and reply worked (send held for confirmation) Local, 24 tools; none for received mail, read failed
Injection email Nothing forwarded Nothing forwarded Nothing forwarded Nothing forwarded Not tested

Two providers are docs only, not tested:

Provider Why we could not test it
Cloudflare Email Service Our API token has no Email Service permissions, and creating one needs a dashboard login.
Amazon SES Our only AWS account runs production email, and we would not change its receiving rules for a test.

Notes on the numbers:

  • Inbound time runs from the moment the sender's API call returned to the moment the message appeared in the agent's list API. The five runs, in seconds: AgentMail 3.28, 3.4, 3.23, 2.35, 2.35; SMTPfast 3.19, 3.12, 2.94, 2.97, 2.83; Resend 3.49, 4.27, 2.77, 3.38, 3.56; Nylas 3.07, 3.06, 1.75, 1.74, 3.13; Postmark 9.18, 7.19, 7.09, 9.19, 6.97. With a 1-second poll, the gaps between the first four are noise.
  • Resend: receiving on our own domain would have meant changing its MX record, so we created the inbox with Resend's forwarding option instead. The inbox sends as [email protected] and receives at an address Resend provides; in real use you forward your mailbox to that address.
  • Postmark: inbound mail is meant to be posted to your webhook. We had no public endpoint, so we polled the Messages API, where messages wait with the status "Scheduled". The list without a status filter returned none of them, which cost us our first Postmark run.
  • Nylas: the API reply call needs the recipient, so our script set it to the original's Reply-To. Over MCP, the Nylas server holds every send until a person confirms it. Our script played that person only after checking the held send was exactly the reply we asked for: one recipient (our test address), a reply to the original message, and the requested text. In the injection test it never confirmed anything.
  • In the injection test, Claude Code summarized the email, and nothing reached the address the email asked it to forward to, for all four providers we could test. One email and one model is not a guarantee; see the security section of our how-to.
  • These are the final runs, on 22 November 2026, from one machine. Earlier runs had mistakes in our test harness, not in the providers: our reply check once matched the wrong message, our first SMTPfast MCP allowlist left out a read tool the model needed, our first Postmark run used the wrong status filter, and our first Nylas MCP check compared the reply against a header the Nylas list call does not return. We fixed the harness and ran those steps again; the repository keeps every log. Run the scripts yourself before you rely on a number.

Pricing at 1,000, 10,000 and 50,000 emails a month

Monthly price, in USD, for an agent that sends that many emails a month and receives as many, on a plan that can do both. Resend and Postmark count received mail toward the plan's allowance, so they need room for twice the number; SMTPfast does not count received mail; AgentMail's and Nylas's pricing pages do not say, and we assumed they do not. Checked on each provider's pricing page on 22 November 2026.

Provider Free tier 1,000 10,000 50,000
SMTPfast 3,000 a month, send only, reviewed by a person $9 (Starter) $9 (Starter, 25,000) $19 (Growth, 100,000)
AgentMail 3 inboxes, 3,000 a month, 100 a day, "Sent via AgentMail" footer $0 (with footer) $20 (Developer) $100 (Developer + 40 x $2 add-on per 1,000)
Resend 3,000 a month (sent plus received), 100 a day, 3 inboxes $0 $20 (Pro, 50,000) $35 (Pro, 100,000)
Postmark 100 a month (sent plus received), inbound included $16.50 (Pro; Basic has no inbound) $29.50 (Pro, 10,000 + 10,000 extra) $125.50 (Pro, 50,000 + 50,000 extra)
Nylas Agent Accounts 3 accounts, 3,000 emails, 20 sends per account per day, no custom domain $15 (Essentials; Free is 20 sends a day per account) $15 (Essentials) $49 (Pro)
Cloudflare Email Service Routing free; sending only to your own verified addresses $5 (Workers Paid, 3,000 sends included) $7.45 $21.45
Amazon SES Up to $200 in credits for new AWS accounts $0.29 base $2.90 base $14.50 base

Cloudflare charges $0.35 per 1,000 sends after the first 3,000, and inbound routing is free. The SES figures are base message charges only: $0.10 per 1,000 sent, $0.10 per 1,000 received and $0.09 per 1,000 incoming 256 KB chunks (one chunk per message under 256 KB), before $0.12 per GB of outbound attachment data. With both Cloudflare and SES you also pay for the storage and code that hold the mail, because neither keeps an inbox for you.

The providers

SMTPfast

The SMTPfast inbox we tested (on a domain with receiving turned on) passed the functional checks: threads with all three messages, replies with correct headers and an attachment, attachment downloads with matching hashes, and Claude Code reading and replying through the hosted MCP server at https://smtpfa.st/api/mcp (105 tools). It has drafts that a person reviews before sending, and a key scope (inbound:read without email:send) that lets an agent write drafts but not send. Every received message carries SPF, DKIM, DMARC, spam and virus verdicts, which an agent can check before it trusts an email.

Weak points, honestly:

  • No shared domain. You need your own domain, an MX record and a verified sending domain before the first inbox. That takes minutes of DNS work, not one API call.
  • Inbound needs a paid plan. Starter is $9 a month. The free plan sends only, and a person reviews each free-plan account before it can send.
  • An agent can sign up, but not activate. smtpfast signup (or POST /v1/cli/signup) creates an account from an emailed 8-digit code, with no browser. The account stays pending until a person pays through a Stripe Checkout link, has a free-plan request approved, or enters an invite code. We did not time this, because our test used an existing account.
  • Keys are team-wide. Scopes limit what a key can do (for example inbound:read without email:send), but not which inbox it can see. An agent that should only see its own mail needs its own team. AgentMail keys can be scoped to one inbox, and Nylas keys to one grant. In our run we used an existing team key with more scopes than the job needed.
  • The reply API answers before the email is sent, so its response has no message_id or in_reply_to yet. The delivered email had both, but an agent that reads the response may think threading failed (Claude Code flagged it as a possible problem in one of our runs).

AgentMail

Built for agents, and it shows. One POST /v0/agent/sign-up call returned an API key and the inbox [email protected] in 2 seconds, with no domain and no dashboard. The inbox could receive straight away. To send to anyone other than the human, the human passes on a 6-digit code that AgentMail emails them; ours arrived in 48 seconds (most of that is a forwarding hop on our side), and the account was verified a second later.

Everything we checked worked: inbox-scoped API keys with named permissions (our read-only key got a 403 when it tried to send), threads, replies with In-Reply-To and References, attachment downloads, and the hosted MCP server at https://mcp.agentmail.to/mcp with an x-api-key header. It also has WebSockets for new mail, calendars, allow and block lists, and an opt-in prompt injection scanner called Agent Armor (in AgentMail Labs, off by default, so our test message was not scanned).

Weak points: the Free plan adds a "Sent via AgentMail" footer to every message, and our From name was AgentMail until we set our own. Shared agentmail.to addresses are fine for testing; for mail to customers, add your own domain (one on Free).

Resend

Resend's Inboxes passed every check. One API call created an inbox on our verified sending domain in 0.8 seconds; threads, replies with the right headers, attachments both ways and the hosted MCP server (https://mcp.resend.com/mcp, 142 tools, including the Inboxes tools) all worked. Every account also gets an <id>.resend.app receiving domain for plain receiving.

Weak points: an inbox needs a domain verified for sending, and receiving on it needs an MX record or forwarding to a Resend address. Received mail counts toward the monthly quota, and the Free plan stops at 3 inboxes. API keys are either full_access or sending_access, so an agent that reads mail gets a key that can also manage domains, contacts and keys; the tool list in your MCP client has to do the narrowing. A person creates the account in a browser.

Nylas

Nylas has two products for agents. Agent Accounts (since June 2026) are hosted mailboxes with a calendar, on your domain or a free *.nylas.email trial domain. Ours took one POST /v3/connect/custom call (0.9 seconds) and then passed every check: send, inbound, threads, replies, attachments and the hosted MCP server (https://mcp.eu.nylas.com for our EU application, 38 tools). Nylas is also the pick when the agent must work in a person's own Gmail, Outlook or Exchange mailbox, through connected accounts with OAuth.

Two things stood out. The MCP server will not send on the model's say-so: it holds the message and asks a person to type a confirmation, which is a good default for agents and a real plus over the others we tested. (Our script confirmed only after checking the held message was exactly the requested reply.) And keys can be bound to one grant with chosen permissions through Nylas IAM, set up in the dashboard or with an organization-level IAM key; we had neither, so we used the application key. Weak points: the Free plan allows 20 sends per account per day and no custom domain, the API reply call needs you to set the recipient, and sign-up is through Google, Microsoft or GitHub SSO.

Postmark (receiving tested; sending blocked by account review)

Postmark is a strong transactional sender with a webhook design for inbound: each server gets an inbound address at once, and mail to it is parsed to JSON and posted to your URL. In our test, all five messages arrived and were readable through the Messages API in about 7 seconds, with attachment names and sizes listed; the attachment content itself only comes in the webhook. There is no thread object: threading and storage are yours to build.

We could not test sending, replies or threading. A new Postmark account can only send to addresses on its own From domain until a person at Postmark approves it, and ours was still pending. The official MCP server (@activecampaign/postmark-mcp) runs locally and has 24 tools for sending, templates, bounces and stats, but none for received mail, so Claude Code could not read the inbound message. Free includes inbound within its 100 emails a month; among paid plans, inbound starts at Pro ($16.50 at 10,000), and received mail counts toward the allowance.

Cloudflare Email Service (docs only, not tested)

Cloudflare's Email Service (public beta) routes inbound mail to a Worker and sends from Workers or a REST API. The Agents SDK has onEmail() and replyToEmail(), and the Cloudflare MCP server exposes the email endpoints. There is no stored inbox: you keep messages in KV, R2 or a Durable Object yourself, or start from Cloudflare's open-source Agentic Inbox. Sending to anyone other than your own verified addresses needs Workers Paid. We did not test it because our API token has no Email Service permissions and creating one needs a dashboard login.

Amazon SES (docs only, not tested)

SES is the cheapest per email and the most work. Inbound is a receipt rule that drops mail into S3 or calls Lambda or SNS; parsing, threading and storage are your code. AWS published a sample SESv2 MCP server in June 2025 for managing SES from an agent. We did not test it because our only AWS account runs production email and SES allows one active receipt rule set per region.

Which one should you pick?

  • Pick SMTPfast if the agent should use an address on your own domain, a person should review drafts before they go out, or the same account also sends your app's transactional mail and newsletters. Budget $9 a month and a few DNS records.
  • Pick AgentMail if you want an agent with its own inbox today, from code, without a domain. It is the only one here where an agent gets a working inbox from its own sign-up, with a person only passing on a code.
  • Pick Nylas if the agent also needs a calendar, you want sends confirmed by a person over MCP, or the agent works in a person's existing Gmail or Outlook mailbox.
  • Pick Resend if you already send with Resend and want inboxes in the same account.
  • Pick Postmark, SES or Cloudflare if the agent only sends notifications, or you want to build the inbox yourself on webhooks or Workers.

For the four ways to set this up, with code for each and how to keep the agent safe, see How to Give an AI Agent Its Own Email Address. For MCP setup alone, see email APIs with an MCP server.

Sources

Checked on 22 November 2026:

Frequently asked questions

What is the best email API for an AI agent?

It depends on the job. For an agent with its own inbox, SMTPfast, AgentMail, Resend Inboxes and Nylas Agent Accounts all passed the functional checks we ran on 22 November 2026 (send, inbound in about 3 seconds, reply threading, attachments, MCP). AgentMail gives an address on agentmail.to from one API call; Nylas gives one on a free nylas.email trial domain and adds calendars; Resend and SMTPfast put the inbox on your own domain. For send-only notifications, any transactional API works. For acting in a user's Gmail or Outlook, use Nylas or the Gmail and Microsoft Graph APIs.

Can an AI agent sign up for an email API by itself?

AgentMail has an Agent API for that: POST /v0/agent/sign-up returned an API key and a working inbox in 2 seconds in our test. The inbox can receive right away, but it can only send to the human's address until the human passes on a 6-digit code from their email. SMTPfast has a CLI and API sign-up with an emailed 8-digit code, but the account stays pending until a person pays, has a free-plan request approved, or uses an invite code. Resend, Postmark and Nylas accounts were created by a person in a browser; after that, a Resend inbox and a Nylas Agent Account each took one API call of under a second.

How fast does inbound email reach an AI agent?

In our test, the median time from sending a message to seeing it in the provider's API (5 messages each, polling every second) was 3.0 seconds for SMTPfast, 3.1 for Nylas, 3.2 for AgentMail and 3.5 for Resend. The differences are inside the poll interval. Postmark took 7.2 seconds, but we read it through its Messages API; Postmark is built to push inbound mail to a webhook, which we did not use.

Which email APIs have an MCP server for agents?

All five we tested. Hosted: Resend (142 tools when we listed them), SMTPfast (105), AgentMail (54) and Nylas (38). Postmark's official server runs locally with npx (24 tools) and has no tools for received mail. Cloudflare exposes email through its Code Mode MCP server, and Amazon SES has a sample server from aws-samples. In Claude Code, the Resend, SMTPfast, AgentMail and Nylas servers all read an email and replied in its thread; Nylas asked a person to confirm before it sent.

Is SMTPfast a good choice for AI agents?

We build it, so take this with that in mind. It passed the functional checks in our test, like AgentMail, Resend and Nylas, and it has drafts that a person reviews before sending. Its weak points for agents: no shared domain (you need your own domain and an MX record), inboxes need a paid plan (Starter, $9 a month), the free plan is send-only and reviewed by a person, API keys are team-wide rather than per inbox, and an agent that signs up through the CLI still needs a person to activate the account.

Ready to get started?

Start sending transactional email today. Free to start, no credit card required.

Start free