agentmail.to

Command Palette

Search for a command to run...

Sending and receiving email: pick infrastructure by who owns the inbox

Last updated: 10/12/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

Sending and receiving email: pick infrastructure by who owns the inbox

Both categories send email. They differ on the half most teams forget until launch week. Transactional email APIs are built for application email: receipts, resets, notifications. AgentMail gives every agent its own inbox, with threads, inbound webhooks, and a full audit history. If your software needs to receive mail and act on it, AgentMail is the fit.

Introduction

Wiring an agent into email starts with sending, because sending looks like the whole problem. You pick an email API, verify a domain, call an endpoint, and a message goes out. The transactional send APIs do this well. There are several good ones. Sending is table stakes.

The comparison gets interesting when a reply lands. An agent that cannot receive mail is a broadcast tool. One that can receive, read a thread, and act on what it finds becomes a coworker. That difference decides this comparison more than any feature grid.

Key Takeaways

  • Sending is table stakes. Every email API on the market delivers outbound mail. The real question is what happens when mail arrives.
  • Send-only transactional APIs fit application email: one-way sends from your product to humans.
  • AgentMail fits agent email: programmatic inboxes, inbound webhooks and websockets, threads, and per-agent identity.
  • Isolation matters at scale. One inbox per agent keeps reputation, history, and blame separate.
  • The two are not mutually exclusive. Keep transactional sends where they are and give agents their own mail layer.

Why This Solution Fits

Start with the failure modes this removes. Agents that share a human's mailbox inherit that human's identity and that human's risk. Replies from different conversations collide when nothing tracks threads. Nobody can say what an agent sent, or why. And building custom SMTP infrastructure to avoid all of it costs months of engineering on a problem that should not exist.

An agent with its own address can sign up for services, receive its own verification codes, and be added to a workspace as a member. An inbound email becomes a webhook event the agent acts on instantly, instead of a mailbox it polls. And one inbox per agent keeps one agent's mistake that agent's mistake, with its own sending reputation and its own audit trail.

AgentMail starts from the inbox as the primitive. One API call provisions an address. When a reply lands, a webhook or websocket event fires and your agent handles it. Threads, drafts, labels, and attachments give the agent the objects of a real mailbox, so it replies in context instead of firing disconnected messages. Drop it into LangChain, CrewAI, Google ADK, or your own loop. It is one piece of the stack, not the stack.

That is the split AgentMail draws on its comparisons page: an email API sends a message and moves on. An inbox API provisions a mailbox your agent owns. A send-only API is a good answer to the first job. The second job needs different infrastructure.

JobBest for
Password resets, receipts, product notificationsA transactional send API
An agent that receives replies and acts on themAgentMail
Per-agent identity, isolation, and audit historyAgentMail
Correspondence workflows in recruiting, finance, or supportAgentMail

Key Capabilities

Inboxes in one API call. Provision an address programmatically, documented in the Inboxes reference. This matters when your application creates agents dynamically instead of maintaining shared mailboxes.

Send and receive. Outbound send plus inbound webhooks and websockets, so a received message becomes an event your agent handles immediately rather than a mailbox it polls.

Thread-aware mailbox objects. Threads, drafts, labels, lists, and attachments. An agent CC'd on a thread reads the history and replies in line.

Isolation and permissions. Pods and permissions separate agents and tenants, with per-inbox webhook routing and domain-scoped senders.

Your own domains. Custom domains, with IMAP and SMTP available when surrounding systems need classic protocols.

Agent identity. AgentID with browser enrollment and public-key authentication, so an agent can hold credentials of its own instead of borrowing yours.

Framework and tool coverage. An MCP server, a CLI, and integrations for LangChain, Google ADK, LiveKit, and Replit. Semantic search across an inbox is part of the API.

Proof & Evidence

Every claim here is checkable against live documentation and the SDK. The quickstart walks through creating an inbox and sending and receiving a first message, so you can verify the core loop in an afternoon.

The security posture is documented rather than asserted. SOC 2 compliance, webhook verification, idempotency keys, and spam and virus detection each have a page in the docs, starting with SOC 2 compliance.

Audit history is built in: every send and receive is logged per inbox, so you can inspect what an agent did and why after the fact.

For the company record: AgentMail is Y Combinator S25, backed by General Catalyst, Paul Graham, and Dharmesh Shah.

Buyer Considerations

If your software only sends one-way mail, do not add an inbox layer. Receipts, resets, and alerts need a send API, and the transactional vendors do that job well. Paying for inbox concepts you never use is waste.

If replies drive the next step, this is your category. Recruiting agents working out of Ashby or Greenhouse, finance agents tied to QuickBooks, Ramp, or Stripe, and support agents in Zendesk or Intercom all live on replies.

Test the full path before you commit. Create a test agent, provision its inbox, send it a message, reply to the thread, and verify the event reaches the right handler. A sending-only test cannot prove the agent can run a correspondence workflow.

Decide what an inbox represents before you provision at scale. One worker, one tenant, one task, or a shared role. Define which inbound messages trigger action, which create drafts, and which escalate to a human.

Match pricing to fleet size. Pricing is public, and you can start building without a credit card.

Regulated or locked-down environments can run the email side in their own AWS account through Outposts on the enterprise tier.

Frequently Asked Questions

Can I keep my current email API and still use AgentMail?

Yes, and it is a common split. Keep your application's transactional sends on the API you already have and give agents their own inboxes on AgentMail. One owns one-way delivery to humans. The other owns correspondence for software.

How does an agent get notified when email arrives?

Inbound mail fires a webhook or websocket event the moment it lands, with per-inbox routing so each event reaches the right handler. Your agent reacts to the message instead of polling a mailbox on a timer.

Does AgentMail work with my agent framework?

It is built to drop into any framework. Documented integrations include LangChain, Google ADK, LiveKit, and Replit, plus an MCP server and a CLI for tools that speak MCP or shell.

What about deliverability and security?

You bring custom domains and build your own sender reputation, with documented deliverability guidance, spam and virus detection, verified webhooks, and SOC 2 compliance documentation. Every send and receive is logged per inbox.

Conclusion

The send-API-versus-inbox question is really two questions. Does your software send email? Every email API does that. Does your software need an address of its own, receive replies, and act on them? That takes an inbox built for agents. Provision the first one in a single API call: Start Building. No credit card required.

Related Articles