Gmail
Email Send Attachment
Send an email with files from this chat, or a file from the web, attached.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| toobject · required | object | required | Recipient email address(es). |
| subjectstring · required | string | required | Subject line. |
| bodystring · required | string | required | Email body (HTML supported). |
| ccobject · optional | object | optional | CC recipients. |
| bccobject · optional | object | optional | BCC recipients. |
| providerstring · optional | string | optional | Mailbox provider kind: gmail, outlook or auto (default). This is NOT an account — to target one specific mailbox, use accountId. One of: |
| accountIdstring · optional | string | optional | The mailbox to use: an `account` value (name or address) from connector-list-accounts, which says whose each mailbox is. In chat, omit it when the person has one mailbox of their own; when several are available the call returns them so you can pick or ask. In a Workflow, omitting it uses the workspace default. |
| attachmentIdsobject · optional | object | optional | Files from THIS chat to attach, by their Attachment ID (an uploaded file, a file-create result, or a file published by code-execute). The server attaches the stored file exactly as the user sees it; the result reports its size and data-row count. Never publish or share a chat file to attach it. |
| attachmentUrlstring · optional | string | optional | Web link (https://…) of a file that is NOT in this chat, downloaded at send time. For a file in this chat pass attachmentIds instead. |
| attachmentCheckstring · optional | string | optional | Leave out on the first call. When it attaches a file the person uploaded, that call is held: it returns what each file is, its opening text and a check code. Look at them, then pass the code here to send. |
| attachmentFilenamestring · optional | string | optional | Filename for a file attached by attachmentUrl. A chat file keeps its own name. |