Preview send
Show the resolved sender, recipients, subject, and attachments without sending.
preview_send
Show the resolved sender, recipients, subject, and attachments without sending.
Permissions
Required capabilities: mail.send.
Inputs
| Name | Required | Type | Details |
|---|---|---|---|
draftId | No | string | Minimum length: 1. |
accountId | No | string | Account to operate on. Optional when exactly one account is connected. Minimum length: 1. |
from | No | string | Connected address or an available send-as address Format: email. |
to | No | array of string | Recipients, each "Name a@x.com" or "a@x.com" |
cc | No | array of string | Recipients, each "Name a@x.com" or "a@x.com" |
bcc | No | array of string | Recipients, each "Name a@x.com" or "a@x.com" |
subject | No | string | Defaults to "Re: ..." when replying |
bodyText | No | string | Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines. |
bodyHtml | No | string | HTML body |
replyToMessageId | No | string | Message being replied to; threads correctly and computes recipients if "to" is omitted |
replyAll | No | boolean | With replyToMessageId: reply to all original recipients |
attachments | No | array of object | None |
{
"type": "object",
"properties": {
"draftId": {
"type": "string",
"minLength": 1
},
"accountId": {
"type": "string",
"minLength": 1,
"description": "Account to operate on. Optional when exactly one account is connected."
},
"from": {
"type": "string",
"format": "email",
"description": "Connected address or an available send-as address"
},
"to": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\""
},
"cc": {
"$ref": "#/properties/to",
"description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\""
},
"bcc": {
"$ref": "#/properties/to",
"description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\""
},
"subject": {
"type": "string",
"description": "Defaults to \"Re: ...\" when replying"
},
"bodyText": {
"type": "string",
"description": "Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines."
},
"bodyHtml": {
"type": "string",
"description": "HTML body"
},
"replyToMessageId": {
"$ref": "#/properties/draftId",
"description": "Message being replied to; threads correctly and computes recipients if \"to\" is omitted"
},
"replyAll": {
"type": "boolean",
"description": "With replyToMessageId: reply to all original recipients"
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"filename": {
"type": "string",
"minLength": 1
},
"mimeType": {
"type": "string",
"minLength": 1
},
"content": {
"type": "string",
"description": "base64"
}
},
"required": [
"filename",
"mimeType",
"content"
],
"additionalProperties": false
}
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Last updated