StyloDocs
Workflow blocks

Send Email

Send an email via Gmail

View as Markdown

gmail/send-email — Send an email via Gmail.

Where it appears

The Send Email block lives in the Integrations group of the Workflow Builder. Connect the Gmail integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
totext (supports references)YesRecipient email address. Use literal text or <StepName.field> to reference an address from a previous step.
cctext (supports references)NoOptional CC recipient address(es). Accepts literal text or <StepName.field>.
bcctext (supports references)NoOptional BCC recipient address(es), hidden from other recipients. Accepts literal text or <StepName.field>.
subjecttext (supports references)YesSubject line of the email. Use literal text or <StepName.field> to reference a value from a previous step.
bodytext (multi-line, supports references)YesBody content of the email, interpreted according to the Content Type field. Use literal text or <StepName.field> to reference upstream content.
contentTypeselectNotextHow the body is sent: Plain Text or HTML. Choose HTML to send formatted markup. Options: text, html.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Send Email.field>.

NameTypeDescription
successbooleanOperation succeeded
messageIdstringSent message ID
threadIdstringThread ID
errorstringError message if failed

Example

A minimal configuration for this block:

{
  "type": "gmail/send-email",
  "config": {
    "to": "<PreviousStep.field>",
    "subject": "<PreviousStep.field>",
    "body": "<PreviousStep.field>",
    "contentType": "text"
  }
}

Limits and failure modes

  • Requires a connected Gmail integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required fields (to, subject, body) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page