Send email
send_emailSEND a new email now, through Mail.app. Nothing is sent unless the user allows it: their permissions decide per recipient, account, label and app whether this is blocked, needs their click on this Mac (they see the full message), or goes ahead. Call explain_policy first if unsure. Every send then waits a few seconds so the user can cancel it, and the result says whether it went. to, cc and bcc are lists of plain addresses; every one is checked. sender must be one of the user's own addresses. This starts a NEW conversation; to answer a message use send_reply. attachments takes files already in the user's mail as {mail_id, attachment_id} (from get_email or find_attachments; Mail downloads one it has not stored yet), and absolute paths of files in the user's home folder (not hidden ones or ~/Library; from web and phone apps only as the user's Attach files from this Mac permission allows). Up to 18 MB in total. The user sees every file's name and size in the confirmation. Recipients must be email addresses. Given only a person's name, look the address up first (search_contacts when it is listed, else search_mail); if more than one person or address could be meant, ask the user. Never guess an address. Requires Keeploop Pro.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| body | Yes | ||
| sender | Yes | ||
| subject | Yes | ||
| category | No | ||
| attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | Yes | ||
| to | Yes | ||
| bcc | Yes | ||
| note | No | ||
| sent | Yes | ||
| sender | No | ||
| account | Yes | ||
| send_id | Yes | ||
| subject | Yes | ||
| decision | Yes | ||
| cancelled | Yes | ||
| attachments | No | ||
| in_reply_to | No | ||
| threads_under | No |