Skip to content
Docs

Email

The Email node sends an email from a flow. Use it to deliver a notification, an alert, or an agent’s reply, and, when it replies to an inbound message, to thread that reply into the same conversation. You find it on the node picker’s Channels — send a reply shelf.

Every email goes out from one of your workspace’s mailboxes. The mailbox decides the address people see, where their replies land, and which limits apply. The node picks it in this order:

  1. The mailbox chosen in mailboxId, when there is one.
  2. When the step answers an email (replyToMessageId is set), the mailbox that email arrived on, as long as that mailbox can send.
  3. Otherwise, your workspace’s Send mail from mailbox, set on the Mailboxes page.

When none of these gives a mailbox that can send, the step fails with a message that says so, and the editor warns you before you run it. The quickest fix is a Publicus inbox: it gets its own address on publicus.email that sends and receives. The first mailbox you add that can send becomes the workspace’s Send mail from mailbox.

It has two handles: input, which takes the upstream node’s output (available in every field as $prev), and output, which passes the send result to the next node.

The Email node's settings form, with the fields described below
The Email node's settings form, with the fields described below
FieldTypeDefaultDescription
To (to)string ✦ (required) — The recipient email address(es). Separate multiple with commas.
Subject (subject)string ✦ (required) — The email subject line.
Text (text)string ✦ (required) — The plain-text body of the email.
HTML body (html)string ✦ (optional) — Optional HTML body. When set it is sent as the rich alternative alongside the plain text.
CC (cc)string ✦ (optional) — Optional CC recipients, comma-separated.
BCC (bcc)string ✦ (optional) — Optional BCC recipients, comma-separated.
From (from)string ✦ (optional) — The From address, when the mailbox may send as more than one: a connected account with several send-as addresses, or your own SMTP server. Leave empty to send from the mailbox’s own address. A Publicus inbox always sends from its own.
Reply to (replyTo)string ✦ (optional) — A Reply-To address, when answers should go somewhere other than the mailbox this email is sent from.
In reply to (replyToMessageId)string ✦ (optional) — The Message-ID of the email being replied to — sets In-Reply-To and the References chain so the reply threads correctly.
Send through (fromMode)one of platform, mailbox, smtp ✦ (optional) — Leave empty: every email goes out from one of the workspace’s mailboxes. platform is an old name for mailbox and means the same. smtp is the old way to send through your own SMTP server with the five SMTP fields; set that server up as a mailbox instead.
Send or draft (mode)one of send, draft ✦ (optional) — Whether to send the message or write it as a draft for a human to review. Only a connected Google or Microsoft mailbox can keep a draft.
Mailbox (mailboxId)string ✦ (optional) — The mailbox this email goes out from. Leave empty to answer from the mailbox the mail came in on, or to send from the workspace’s “Send mail from” mailbox.
Attachments (attachmentIds)string ✦ (optional) — Files to attach, given as stored attachment ids. Accepts a comma-separated list, a JSON array of ids, or the attachments array from an email trigger.
Campaign mail (isCampaign)boolean ✦ (optional) — Mark this as a campaign (bulk) message. Campaign mail adds a compliance footer and one-click-unsubscribe headers; leave off for transactional mail.
SMTP host (smtpHost)string ✦ (optional) — Old: SMTP server hostname, for fromMode smtp. Set your SMTP server up as a mailbox instead.
SMTP port (smtpPort)integer ✦ (optional) — Old: SMTP server port, for fromMode smtp. Set your SMTP server up as a mailbox instead.
SMTP security (smtpEncryption)one of none, tls, ssl ✦ (optional) — Old: SMTP security (none, tls or ssl), for fromMode smtp. Set your SMTP server up as a mailbox instead.
SMTP username (smtpUsername)string ✦ (optional) — Old: SMTP username, for fromMode smtp. Set your SMTP server up as a mailbox instead.
SMTP password (smtpPasswordSecretId)string ✦ (optional) — Old: the secret holding the SMTP password, for fromMode smtp. Set your SMTP server up as a mailbox instead.

Fields marked ✦ accept expressions.

Try this node — run it once against your own workspace, with your credentials, without building a flow first.

On a successful send the node emits the send result, including the driver that carried it:

{ "status": "sent", "channel": "email", "driver": "platform", "messageId": "…", "conversationKey": "…" }

In draft mode the status is drafted. A refused send (no mailbox to send from, an invalid address, a cap, a suppressed recipient, a transport rejection) fails the node, and every attempt, failed or not, is recorded in the email log.

Mailbox Sends? From address
Publicus inbox Yes, within the Publicus inbox limits. Its own address on publicus.email.
Google or Microsoft (connected) Yes, once the connection has been granted permission to send. The mailbox page reports whether it has. The account’s address, or one of its send-as addresses in from.
IMAP with an outgoing (SMTP) server Yes, reusing the mailbox’s own login. The mailbox’s address.
Your own SMTP server Yes. It only sends; nothing arrives on it. Its Send from address, or another in from.
IMAP with no outgoing server No. It only receives. —

The mailboxId picker lists only mailboxes that can send. A step that names a mailbox that cannot send fails naming it, rather than silently doing nothing.

A Publicus inbox is a mailbox Publicus hosts for you, with an address such as support-k3xq@publicus.email. Mail sent from it leaves as that address, and replies come back to it, where they can start a flow through an Email Trigger.

It needs no account of your own, so it is the fastest way to send from a flow. Because the sending domain is shared across workspaces, it is meant for transactional mail and enforces the limits described under Sending limits and compliance. It always sends from its own address, so from is ignored.

To send as your real address, threaded into the recipient’s existing conversation and copied into your Sent folder, connect your own mailbox:

  1. Add a mailbox on the Mailboxes page. See How to connect a mailbox; the same mailbox handles both inbound mail and sending.
  2. Select it in mailboxId, or make it the workspace’s Send mail from mailbox so every step that names none uses it.

On a reply, you can leave mailboxId empty: when replyToMessageId points at a message that arrived on a mailbox that can send, the node sends the reply back through that same mailbox.

To send through a mail server you already use (your company’s own, or a service such as SendGrid, Postmark, or Mailgun), add it as a mailbox of the kind Your own SMTP server on the Mailboxes page, with its host, port, login, password, and the address to send from. Then select it in mailboxId, or make it the workspace’s Send mail from mailbox. See Your own SMTP server.

Your server’s own limits apply, not the Publicus inbox limits.

To reply to an inbound email so it threads correctly in the recipient’s mail client, set In reply to (replyToMessageId, under More settings) to the incoming message’s ID:

{{ $start->payload->messageId }}

The node uses this to set the In-Reply-To and References headers, inherit the inbound message’s conversation key, and send the reply through the mailbox the original arrived on (when that mailbox can send and mailboxId is empty). This turns Email Trigger → Agent → Email into a working auto-reply loop. See How to build an email agent for the pattern.

Set Attachments (attachmentIds, under More settings) to attach stored files to the send. The field accepts three shapes: a comma-separated list of attachment ids, a JSON array of ids, or the attachments array from an Email Trigger payload as it stands. The last one is the common case, forwarding what arrived:

{!! $start->payload->attachments !!}

To attach files from a file store, pick them in the field: type part of a path, and it lists the matching files of every file store in your workspace as Store › path, the newest first, 50 at most. One picked file is saved as its object id, several as a JSON array, and a list of ids typed in before the field became a picker opens as its files. To forward what arrived, click Insert a value ({x}) and write the expression above.

An inbound attachment that was too large to store arrives with a null id, and the node refuses to send rather than silently dropping the file the flow believed it was forwarding.

Size limits depend on the mailbox: a Publicus inbox counts attachments against its 2 MB total message limit, a connected Microsoft mailbox allows 3 MB, Gmail 5 MB, and an IMAP or SMTP mailbox 10 MB (your server may refuse less).

Set Send or draft (mode, under More settings) to draft to write the message into a connected Google or Microsoft mailbox instead of sending it. A person then opens their mail client, reviews the draft, and clicks send. This is the draft-first pattern for agent-written replies: the agent does the drafting, a human keeps the send button.

Draft mode is refused for every other mailbox, since only those two keep a Drafts folder Publicus can write to.

The Email node can be called by an Agent as a tool, so an agent can send or draft a reply on its own. Agent-invoked sends are approval-gated by default: the send pauses for a human to approve before any mail leaves. Combine draft mode and the approval gate for a graded policy (auto-send, approval-gated send, or draft-only). See How to add human approval.

When the AI builder tests a flow from its chat, this node mails you instead of its recipients, with cc and bcc left out. The mail keeps its subject and opens with a line such as “A test from the AI builder. It would have gone to klant@example.com.”, in your workspace’s portal language. The run page shows whom it would have reached under the mail. The limits of a Publicus inbox still apply, to your address. A run you start yourself, or one an MCP client starts, sends to the real recipients.

Because its mail can only reach you, the builder tries this node on its own without asking in Auto-write, and Ask first bundles the try with the other routine changes. A draft still asks, since it is written into a connected mailbox.

A Publicus inbox sends from a domain shared across workspaces, so it enforces limits at send time:

  • Per-workspace limits. A workspace sends at most 100 messages an hour and 1,000 a day from its Publicus inboxes, counted over the last hour and the last 24 hours. When a limit is reached, the node fails and points you at your own mailbox or SMTP server rather than working around it.
  • Suppression. Addresses that hard-bounce or complain are suppressed and skipped on future sends. That includes a bounce report that comes back to the inbox because the address no longer exists. A spam complaint switches off the flow’s mail, not only the address. The flow then waits in Needs you, where a workspace owner can choose Turn mail back on once the flow and its recipients are fixed. Only an owner can do this, and the address that complained stays suppressed.
  • Content limits. The subject, text, and (if present) HTML must each be at least 10 characters, the whole message (attachments included) must be under 2 MB, and there is a cap of roughly 10 recipients per message (each To, CC, and BCC address counts and is billed separately).
  • Compliance footer. Set isCampaign on bulk mail and the node adds a compliance footer and one-click-unsubscribe headers. Transactional mail is exempt.

Your own mailboxes and SMTP servers are bound by their provider’s quotas (for example a mailbox’s per-day send limit), which the node surfaces in its error message when a send is rejected.

The Smoke / Channel email — platform send template is a minimal send from the workspace’s Send mail from mailbox. To build it yourself:

  1. Make sure your workspace has a mailbox to send from: the Mailboxes page shows Send mail from with its name. Every workspace starts with a Publicus inbox for this. If it shows no mailbox, create a Publicus inbox.
  2. Add an Email node and leave mailboxId empty.
  3. Set to to the recipient, subject to a line of at least 10 characters, and text to the body.

Answer an inbound email as your real address, threaded into the conversation. Wire Email Trigger → Agent → Email:

  1. Leave mailboxId empty, so the reply goes out from the mailbox the email arrived on.
  2. Set to to the original sender, for example {{ $start->payload->from }}.
  3. Set subject, and text to {!! $prev->content !!} (the Agent node emits its reply under content).
  4. Set replyToMessageId to {{ $start->payload->messageId }} so the reply threads.

Same wiring as above, on a Google or Microsoft mailbox, but set mode to draft. The agent writes the reply into the mailbox; a person reviews and sends it.

  • A step that names no mailbox, in a workspace with no Send mail from mailbox, cannot send. It fails with a message saying so, and the editor and the AI builder’s checks warn about it first.
  • Draft mode works on Google and Microsoft mailboxes only.
  • An IMAP mailbox with no outgoing server cannot send. The send fails naming the mailbox rather than doing nothing.
  • Attachments are sent by stored attachment id, so the node can only attach files Publicus already holds (what an Email Trigger stored, for instance). It does not attach a file from a URL.
  • The node sends one message per run. To mail a list, iterate with Parallel rather than piling addresses into to, which a Publicus inbox caps at roughly 10 recipients per message.