Send Email
email_sendSend a new outbound email from the agent mailbox. Use this when you need to compose and deliver a message with optional CC, threading headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Optional CC recipient email addresses. | |
| to | Yes | List of recipient email addresses. | |
| bcc | No | Optional BCC recipient email addresses. | |
| body | Yes | Plain-text body content for the email. | |
| agentId | Yes | Agent ID sending the email. | |
| headers | No | Optional custom email headers as key-value pairs (e.g. {"X-Campaign": "onboarding"}). Merged with Anima's own threading/compliance headers, which win on conflict. | |
| subject | Yes | Subject line for the outgoing email. | |
| bodyHtml | No | Optional HTML body content for rich email formatting. | |
| inReplyTo | No | Optional message ID to set the In-Reply-To header for threading. | |
| references | No | Optional References chain, oldest first: RFC 5322 Message-IDs (an email's `externalId`), not Anima message ids. Omit it on a reply: the chain is derived from `inReplyTo`. | |
| attachments | No | Optional file attachments (max 20 entries, 25MB total). Each entry must provide either `content` (base64-inline) or `url` (public URL for server-fetch). Use `contentId` for inline images referenced in HTML via `cid:` URIs. | |
| fromIdentityId | No | Optional EmailIdentity ID to send from. Must belong to this agent and be verified. If omitted, the agent's primary identity is used. Use this to route different message types through different identities (e.g. transactional from @brawz.ai, support from @support.brawz.ai). Discover available IDs from the `emailIdentities` array returned by agent_get. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| status | No | ||
| messageId | No |