---
title: "Send Email"
description: "Send an email from the connected Gmail mailbox."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/gmail/send-email"
---
# Send Email

> Send an email from the connected Gmail mailbox.

<block-meta block="Yes" capability="Gmail" channels="Any" folder="google/gmail" group="Gmail" groupTo="/build/workflows/blocks/gmail" icon="i-lucide-send" pipe="Value" scope="Any" service="Google" tool="Yes" type="google.gmail.send_email">



</block-meta>

**Send Email** sends a new message from the Gmail mailbox on the [Google](https://docs.vettero.com/integrations/third-party-services/google) connection for this block. Recipients can be literals or context variables. **Subject** and **Body** are Liquid templates, rendered when the block runs (`Hello {{ args.name }}`).

This starts a **new** conversation. To stay on an existing thread, use [Reply to Email](https://docs.vettero.com/build/workflows/blocks/gmail/reply-email) with a `threadId`.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        To
      </strong>
    </td>
    
    <td>
      Recipient address (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Subject
      </strong>
    </td>
    
    <td>
      Liquid subject line (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Body
      </strong>
    </td>
    
    <td>
      Liquid message body (required). Match <strong>
        Content type
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Cc (optional)
      </strong>
    </td>
    
    <td>
      Carbon-copy addresses
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Bcc (optional)
      </strong>
    </td>
    
    <td>
      Blind carbon-copy addresses
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Reply-To (optional)
      </strong>
    </td>
    
    <td>
      Reply-To header
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Attachments (optional)
      </strong>
    </td>
    
    <td>
      Workspace file(s) to attach
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Content type
      </strong>
    </td>
    
    <td>
      <strong>
        Plain text
      </strong>
      
       (default) or <strong>
        HTML
      </strong>
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after Gmail accepts the send
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`):

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Gmail message id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        threadId
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Thread id (store for later replies)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labelIds
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Labels Gmail applied to the sent message
    </td>
  </tr>
</tbody>
</table>

## Use case

- After a form or chat [input](https://docs.vettero.com/build/workflows/blocks/in), send a confirmation from the workspace mailbox.
- Notify a teammate with HTML from earlier blocks, then [Bind Pipe](https://docs.vettero.com/build/workflows/blocks/context/bind-pipe) to keep `threadId`.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
