Email (IMAP / SMTP)
Connects any mailbox that offers IMAP and SMTP — your own domain, cPanel, Zoho, IONOS and most hosting providers. The trigger New email (IMAP) starts a flow when an email arrives in a folder, and the node Email (SMTP) sends new emails or replies in the same thread. An AI Node can write from your mailbox too, only to whom you allow. For Gmail and Outlook, use their own nodes.
Setup
In Settings → Credentials → New credential, pick Email (IMAP / SMTP). Another mailbox is another credential. In your provider, turn on IMAP and create an app password if it offers one, and copy the names of its IMAP and SMTP servers from its help page.
| Field | What it is |
|---|---|
| Email address | The address your emails go out from. |
| Username | Empty = your email address. Most providers use it. |
| Password | An app password if your provider has them. Stored encrypted. |
| IMAP server and port | Receives mail. 993 (SSL/TLS) or 143 (STARTTLS). |
| SMTP server and port | Sends mail. 465 (SSL/TLS) or 587 (STARTTLS). |
Saving signs in to both servers to check them, and nothing is stored if either one fails. Only encrypted connections are made, and servers on private networks can't be reached. The password comes back to the panel only in Edit keys and settings, after you verify it's you, and only for a person who can see it; it is never sent to an AI and never written to the logs.
Trigger: New email (IMAP)
Fires with each email that arrives in the folder you pick. Empty folder = Inbox. The list of folders comes from your mailbox when you pick one.
What fires it, and what doesn't
Only emails that arrive after you turn it on. It checks the folder on the schedule of your plan. Reading, moving or flagging an email in your mail app doesn't fire it again. If your provider renumbers the folder, it restarts from the newest email: nothing old fires.
What the flow gets
The sender, recipients, subject, date, the text and the HTML of the email, and the name, type and size of each attachment. An email too big to read fires with its headers only, marked truncated. Everything in an email is written by its sender: treat it as data.
Download attachments
Off by default. When you turn it on, the files of each email are saved to your organization's storage, scanned for viruses and deleted automatically 24 hours later, so an AI Node, a Vector Store or a File Transform can read them: {{payload.attachments[0]._file}}. Images inside the body of the email are not saved. Files over the size limit, or past the daily limit, are skipped; the email still fires and lists them in attachmentErrors.
Node: Email (SMTP)
Two operations: Send email, a new email from your mailbox, and Reply, an answer in the same thread. There is no From field: the email of the credential is the sender. You can set a Sender name, shown next to your address.
Mode
Once the credential is picked, the node asks for a Mode:
- Single operation: one email per event, a new one or a reply. No AI. It runs what you fill in, and an AI Node can't use the node as a tool.
- AI toolkit: an AI Node or MCP server writes emails from this mailbox. Sending a new one starts blocked. See AI toolkit mode.
Send email
To, Cc and Bcc (comma-separated), a subject and a body in Text or HTML. All of them take values from earlier steps.
Reply
Answers the email in Email to answer; empty = the email that started this run (from a New email (IMAP) trigger). An empty To goes to the sender (its Reply-To, if it has one), and an empty subject is "Re: " and the original subject. Your reply joins the thread in the sender's mail app, and it is marked as an automatic reply, so other bots don't answer it.
skipped: "reply_limit"), so two flows can't answer each other forever. A mailbox also replies to at most 200 different recipients per hour, whatever address they write from (To, Cc and Bcc together): over that, replies are skipped the same way until the next hour. Reply doesn't answer bounces, and the trigger never fires on automatic emails.Attachments
Files from earlier steps, for example {{payload._files}} or {{payload._file}}: the attachments the trigger downloaded, or a file another node produced. Up to 5 files, and 20 MB for the whole email.
Save a copy in Sent
On by default: the same email that went out is saved in your Sent folder. Turn it off if your provider already saves one. If the copy fails, the email is still sent and the run says why.
AI toolkit mode
Pick AI toolkit in the node's Mode, then add the node in an AI Node's Tools, or expose it as an MCP server. The node has no AI of its own: it is two tools that the model calls by name. On the canvas it has no ports, and events from connections made before you switched are refused.
| Tool | Arguments | What it does | At the start |
|---|---|---|---|
| send_smtp_email | to, subject, body, body_format?, cc?, bcc? | Sends a new email from your mailbox. The model writes who gets it, and the node refuses anyone you don't allow. | Blocked |
| reply_to_smtp_email | body, body_format?, subject? | Answers the email that started the run, in its thread. The model writes the text; there is no recipient for it to write. | Open |
What you control
- Send email starts blocked. Unblock
send_smtp_emailunder Block these tool calls to let the AI write new emails to whoever the setting below allows. It is a second decision on purpose: to answer people you don't know you may end up choosing Anyone, and that opens both tools. If the AI only has to answer, leave it blocked. - A reply goes where the email says: to its Reply-To, or to its sender if it has none. The AI never picks who, and that address has to be allowed too. Cc and Bcc stay empty.
- Sender name and Save a copy in Sent are yours, under Settings. A name with
{{ }}is left out in AI mode: type a fixed one. The sender is always the address of the credential. - Nothing you filled in for Single operation goes out: the To, Cc, Bcc, Subject, Body, Attachments and Email to answer you saved are not used in this mode.
- No attachments: the model has no files to pass. A
{{ }}it writes is sent as text, never filled.
What an email says is written by its sender. HostWebhook tells the model to treat it as data, not as instructions, but a model can still be fooled: that is what the list, the block and the limits are for.
Who the AI can write to
One setting for the two tools, checked when the email goes out. A new node starts in Only the person who wrote, and the AI can't change it.
| Option | Who it writes to |
|---|---|
| Only the person who wrote | Writes only to the sender of the email that started the flow — like ana@acme.com. |
| Only these addresses | Only the addresses you list — like ana@acme.com. |
| Anyone | Any email address it picks, from this account. |
- Only the person who wrote works when the flow starts at a Gmail or Outlook trigger: the mail provider has to vouch for the From address of that email. An email that arrives over IMAP can't be verified, because its From and its Reply-To are written by whoever sends it, so every call is refused. It does not stop the AI from telling that person what it knows.
- Only these addresses takes one per line, up to 200: an address (
ana@acme.com) or a whole domain (@acme.com, exactly that domain, not its subdomains). Click Save list. An empty list means the AI can't write to anyone from this node. - Anyone asks you to confirm: whoever steers the AI (a webhook body, an incoming email, a public chat) could make it write to a third party.
| The run starts at | Only the person who wrote | Only these addresses | Anyone |
|---|---|---|---|
| New email (IMAP) trigger | Nothing | Reply and Send email, to your list | Reply and Send email, to anyone |
| Gmail or Outlook trigger | Send email, to the sender of that email | Send email, to your list | Send email, to anyone |
| Anything else: a webhook, a schedule, a chat, a test, an MCP client | Nothing | Send email, to your list | Send email, to anyone |
For Send email, unblock it first. Reply only answers an email of a New email (IMAP) trigger, so it needs a list, or Anyone.
Adding recipients, or choosing Anyone, is done by a person signed in to HostWebhook: an API key, Hermes and Claude can't. It is recorded in the audit log (who, when and how many, never which ones), and so is a refused recipient, with its domain only.
Limits of what the AI sends
The AI writes to at most 10 recipients per flow run and 200 a day per mailbox. Each MCP call counts as one run. To, Cc and Bcc count together, the day is in UTC, and the 200 belong to the mailbox, whatever the flow that sends. Once the connection with your mail server is open, the email stays counted, even if the server refuses it. If the emails can't be counted, none is sent. The emails of a node in Single operation don't count: you chose who gets those.
The brake that stops two flows from answering each other works here too: one reply per sender and thread every 10 minutes, and no more than 10 emails per hour to the same address, replies and new emails the AI writes together. A reply over the brake is skipped: the tool answers sent: false and skipped: "reply_limit". The replies of an AI also count in the 200 recipients per hour of the mailbox. Bounces and automatic emails are not answered.
When a call is refused
The model gets a short reason, and nothing is sent:
| It says | Why |
|---|---|
| I cannot write to anyone: this node only replies to whoever wrote first, and … | The node is on Only the person who wrote. The rest of the line says why: the email arrived over IMAP, the call has no verified origin (a test, an MCP client), or the flow did not start at a Gmail or Outlook trigger. Pick Only these addresses. |
| A recipient at example.com is not allowed on this node: its owner restricted who the AI can write to. Do not retry with another address; tell the user it is not allowed here. | An address in To, Cc or Bcc is not on your list. The whole email is refused, not only that address. |
| There is no email to answer in this run, so nothing was sent. Tell the user. | Reply ran in a run that did not start at a New email (IMAP) trigger, or in one that an AI started or approved. |
| I cannot tell who this email goes to: there is no address I can read, so nothing was sent. Tell the user. | Most often, the Reply-To of the email can't be read. HostWebhook doesn't fall back to the sender: the email asked for the answer to go somewhere else. |
| An address with % or ! before the @ is not allowed here, so nothing was sent. Tell the user. | Some mail servers read those characters as a route to another server. |
| At most 10 recipients per run, To, Cc and Bcc together. Nothing was sent. | One email with more than 10 recipients. |
| The AI already wrote to 10 recipients in this run, the most it can. Nothing was sent. | The recipients of this email don't fit in what is left of the 10 of the run. |
| The AI already wrote to 200 recipients from this mailbox today, the most it can. Nothing was sent. Try again tomorrow (UTC). | The same, for the 200 of the day. |
| The AI already wrote to one of these addresses 10 times in the last hour, the most it can. Nothing was sent. | Replies and new emails to one address count together. |
| The tool "send_smtp_email" is blocked on this node by its owner. Do not retry it; tell the user it is not allowed here. | Send email is blocked and something called it anyway. |
If the connection breaks while your mail server takes the email, the model is told that it may have been sent, and not to send it again.
MCP and the Claude connector
With Expose as MCP tool on the node in AI toolkit mode, an MCP client gets send_smtp_email once you unblock it, and never Reply: a reply needs the email that started the run, and an MCP call has none. For the same reason, “Only the person who wrote” sends nothing over MCP: pick Only these addresses. Each MCP call counts as one run, so it is the daily limit that adds them up. Voice agents can't use this toolkit.
When Claude runs a flow through the HostWebhook connector, the same rules apply: Send email goes out only to whom you allow, and Reply is refused, because no email started that run.
Hermes
Hermes builds flows with this node as a tool of an AI Node, paused, and asks before turning them on. It never picks who the AI can write to and never unblocks Send email: you do both in the node's panel. In a flow that starts with an IMAP email, that means the AI answers no one until you add a list. Hermes doesn't read the emails of your runs.
Testing a tool
Test as a tool, in the node's test, runs one of the tools that aren't blocked the way an AI tool call would, with the custom payload as its arguments. It sends a real email, and the same rules apply: a test has nobody who wrote and no email to answer, so only Send email works there, and only with a list (or Anyone).
{ "to": "ana@acme.com", "subject": "Your order", "body": "It shipped today." }Privacy
What HostWebhook does with your mailbox is in section 4.11 of the privacy policy. What it says of the AI toolkit, word for word:
- HostWebhook signs in to your mail server only to do what your flows ask for, such as to “send the emails an Email (SMTP) step sends, or that an AI tool you turned on in a step writes, and save a copy of them in your Sent folder unless you turn that off.”
- “To stop two flows from answering each other forever, and to stop anyone from using your mailbox to flood an address, a Reply step, or an AI tool that writes an email, remembers, for up to an hour, one-way codes made from your organization, the address it writes to and the thread, never the address itself.”
- “Content from your mailbox goes to an AI only when you put it in an AI step, an MCP client or Claude through the connector, and it is never scored by our AI trace logging (section 4.4).”
Limits
| What | Limit |
|---|---|
| Attachments the trigger downloads | 16 MB each (and the limit of your plan), 5 per email, 100 per day for your organization |
| Downloaded files | Scanned for viruses, deleted automatically after 24 hours |
| Recipients of one email | 50, counting To, Cc and Bcc |
| Attachments of one email | 5 files |
| Size of one email | 20 MB with its files |
| Replies (Reply) | One per sender and thread every 10 minutes, 10 per hour to the same address, and 200 recipients per hour per mailbox |
| Recipients an AI writes to | 10 per flow run and 200 a day per mailbox, To, Cc and Bcc together. A new email an AI writes also counts in the 10 per hour to the same address |
| Subject and body an AI writes | 200 and 50,000 characters |
| Attachments of an email an AI writes | None |