Agent tools

send_mail

send_mail({ box?, to, cc?, subject?, body, reply_to_message?, attach?, signature? })

Send from one of the account's own addresses, signed with its domain's key. Approved by the user on every single send, in every mode.

category: sendasked every timeno always
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

boxstring

Which address writes. Optional when the account owns one.

tostringrequired

Comma-separated, five at most.

ccstring

Comma-separated.

subjectstring

Required unless replying.

bodystringrequired

Plain text. Blank lines separate paragraphs.

reply_to_messagestring

The message being answered: subject, recipient and thread are kept, and the original quoted.

attachstring[]

Workspace files.

signatureboolean

false sends without the mailbox signature.

The account must own a mailbox

There is no other way to send. With none, the agent is told to say so and point at Mail rather than improvise — it will not fall back to some other address.

Every send is approved

The recipients, the subject and the body are in the permission's arguments

This is the one category where showing the arguments to a person is the whole point. « always » is accepted and treated as a single approval — the next send is asked again.

Accepted is not delivered

The relay hands back as soon as the message is queued. The agent's instructions are explicit: never tell the user it arrived.

Plain text only

The body is text and is escaped on the way out. A message going out under the customer's own name is not a place to accept caller HTML.