send_email
Send email messages through a connected Gmail or Outlook mailbox. If no mailbox is linked, provides an authentication link to connect and retry.
Instructions
Send an email through the connected Unipile mailbox (Gmail/Outlook).
This is the only supported way to send email. Never use Mail.app, osascript,
mailto: handlers, or a local SMTP client.
If no mailbox is connected, the result includes a hosted-auth link.
Have the user open it, then retry. Or call account(action='connect_email')
first.
Args:
to: Recipient email address.
subject: Subject line.
body: Body text (HTML is fine).
to_name: Optional display name for the recipient.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| body | Yes | ||
| subject | Yes | ||
| to_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |