On OpenMail, have the agent save a draft instead of sending. A person reads it, and your code sends that exact version only after they approve. The drafts API never sends a draft on its own, and the send call is rejected if the draft changed after the person looked at it.
The gate holds only if the agent can't send. With a key that can send, it can skip the draft. So give the agent one tool, save a draft, and keep the key on your server.
An n8n forum thread on this question has run since September, and lands on the same pattern: draft, park it, notify someone, send on approve.
Step 1: the agent saves a draft
Give the agent a tool that calls POST /v1/drafts through your backend. Saving a draft doesn't send email, start a thread or use any sending allowance. Pass threadId and the draft becomes a reply in that thread when it goes out.
// draft-tool.ts: the only email tool the agent gets
export const API = "https://api.openmail.sh/v1";
export const headers = {
// An inbox-scoped key can send. It stays on your server, never in the agent.
Authorization: `Bearer ${process.env.OPENMAIL_API_KEY}`,
"Content-Type": "application/json",
};
export async function saveDraft(input: {
inboxId: string;
threadId?: string; // set it to answer an existing thread
to: string[];
subject?: string;
bodyHtml: string;
}) {
const res = await fetch(`${API}/drafts`, {
method: "POST",
headers,
body: JSON.stringify(input),
});
const draft = await res.json(); // 201: { id, updatedAt, to, subject, ... }
await notifyReviewer(draft.id); // Slack, your dashboard, an email to a person
return { draftId: draft.id, status: "waiting for approval" };
}OpenMail has no webhook event for a new draft, so notifyReviewer is yours to write.
Step 2: a person reviews it
Show the reviewer the draft from GET /v1/drafts/{id}: recipients, cc and bcc, subject, body and attachments. Keep its updatedAt with the approve button. If the reviewer wants a change, edit it with PATCH /v1/drafts/{id}, which returns the new version. To reject it, DELETE the draft.
No review screen yet? API drafts also appear in the inbox's Drafts folder in the OpenMail console, where a person can edit and send them.
Step 3: send the version that was approved
The approve button calls POST /v1/drafts/{id}/send with the updatedAt the reviewer saw.
// approve.ts: runs when the reviewer clicks Approve
import { API, headers } from "./draft-tool";
export async function approve(draftId: string, reviewedUpdatedAt: string) {
const res = await fetch(`${API}/drafts/${draftId}/send`, {
method: "POST",
headers,
// The updatedAt the reviewer saw, not a fresh one.
// Re-reading it here would send edits nobody approved.
body: JSON.stringify({ updatedAt: reviewedUpdatedAt }),
});
if (res.status === 409) throw new Error("Draft changed after review");
return res.json(); // { messageId, threadId, status }
}If anyone edited the draft after review, the call returns 409, so nothing goes out that a person didn't read. A failed send keeps the draft. Add sendAt to hold the approved email until a set time, from 30 seconds to 30 days ahead.
Keep the send key away from the agent
OpenMail has no account setting that holds sends for approval. An inbox-scoped key can read and send from its inbox, so the gate is only as strong as your rule that the agent never holds that key. If a prompt injection talks the agent into sending, it has nothing to send with.
Over the MCP server it's softer: creating a draft needs the Send scope, which also allows send_email. ChatGPT asks before any write action, which is fine for one person at a keyboard. For mail to customers, use the REST pattern.
Two backstops worth adding
Sender rules limit who an inbox may send to. In allowlist mode, a send to anyone not on the list is refused on our side, approved or not, and an inbox-scoped key can't change the rules. That covers the reviewer who approves without reading the To line.
A scheduled send gives you an undo window instead of a gate. Send with sendAt ten minutes ahead, and a person can cancel it until then. Nobody has to act for it to go, so keep it for low-risk mail.
Where other providers put the gate
Some agent email providers hold the send on their side, so the rule doesn't depend on your code. If you want that, they are the better pick today. We checked each one's own site on December 1, 2026.
| Provider | Where the email waits | How a person approves |
|---|---|---|
| OpenMail | In your code. The agent saves a draft through your backend; nothing sends until your approve handler calls send. | Your app, Slack, or the console's Drafts folder. Send only takes the version the reviewer saw. |
| e2a | At the provider, opt-in per agent. A send returns 202 with status pending_review. | Dashboard, API, MCP tools or a magic link by email. A hold that times out is approved or rejected, your choice. |
| Molted | At the provider: first emails to new contacts, or every email. Replies on flagged threads also wait. | Approve or reject in the dashboard. The agent can't approve itself. |
| MultiMail | At the provider. The default gated_send mode holds outbound mail, except to recipients on an approved allowlist. | A webhook tells the operator, with an approval link. Five oversight modes, from read-only to autonomous. |
Pick e2a, Molted or MultiMail when you want approval switched on per inbox without writing the review step. Pick OpenMail when you already have a place where people review agent work, and drafts are one more thing to show there. For the inbound half, see how an agent receives and replies; every draft field is in the drafts reference.
Frequently asked questions
Can OpenMail hold every agent email until a person approves it?
Not as an account setting. OpenMail gives you drafts that never send on their own, and a send call that only accepts the version a person reviewed. The rule that the agent may only draft lives in your code, by not giving the agent a tool that sends.
What happens if the agent edits a draft after it was approved?
The send fails with 409. Sending a draft needs the exact updatedAt the reviewer saw, and every edit changes it. Show the new version to the reviewer and approve again.
Does a draft count against my sending limits?
No. Creating a draft doesn't send email or use any sending allowance. Sending limits and sender rules apply when the approved draft is sent.
Can I do this with the OpenMail MCP server?
Yes, with care. The MCP server has create_draft, get_draft and send_draft. Creating drafts needs the Send scope, which also allows send_email, so MCP can't limit an agent to drafts only. For a hard gate, use the REST pattern.



