compose_email
Create and send emails from Apple Mail accounts with options for recipients, subject, body text, attachments, CC/BCC, and delivery modes including draft saving or immediate sending.
Instructions
Compose and send a new email from a specific account.
Args: account: Account name to send from (e.g., "Gmail", "Work", "Personal") to: Recipient email address(es), comma-separated for multiple subject: Email subject line body: Email body text (used as plain-text fallback when body_html is provided) cc: Optional CC recipients, comma-separated for multiple bcc: Optional BCC recipients, comma-separated for multiple attachments: Optional file paths to attach, comma-separated for multiple (e.g., "/path/to/file1.png,/path/to/file2.pdf") mode: Delivery mode — "send" (send immediately, default), "draft" (save silently to Drafts), or "open" (open compose window for review before sending) body_html: Optional HTML body for rich formatting (bold, headings, links, colors). When provided, the email is sent as HTML. The plain 'body' field is still required as fallback text.
Returns: Confirmation message with details of the email
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| to | Yes | ||
| subject | Yes | ||
| body | Yes | ||
| cc | No | ||
| bcc | No | ||
| attachments | No | ||
| mode | No | send | |
| body_html | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |