campaignstack_send_gmail
Send an email via Gmail using a connected Google account. Requires a Google account to be connected and linked to the workspace. Use the Google integrations settings in the app to connect one first. If googleAccountId is omitted, uses the first connected Google account linked to the workspace. Returns the Gmail messageId and threadId on success. Provide htmlBody for rich formatting; body is used as the plain-text fallback. Optional attachments are passed as public URLs and downloaded server-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient email address | |
| body | Yes | Plain-text email body | |
| subject | Yes | Email subject line | |
| htmlBody | No | Optional HTML email body (used instead of body for rich formatting) | |
| attachments | No | Up to 5 files to attach (18 MB total). Downloaded server-side into storage before sending. | |
| workspaceId | No | Workspace ID (defaults to the bound workspace) | |
| googleAccountId | No | Google account ID to send from. Defaults to the first connected Google account linked to the workspace. |