> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Gmail: Send Email

Send an email via Gmail. Use this to send notifications, alerts, or automated emails to users. Supports HTML body content, CC/BCC recipients, and reply threading. Ideal for: price alerts, workflow notifications, user communications, automated reports.

![Gmail: Send Email logo](https://ai-icon.b3.fun/logo/gmail)
Catalog action Integrations pipedream:gmail

Send an email via Gmail. Use this to send notifications, alerts, or automated emails to users. Supports HTML body content, CC/BCC recipients, and reply threading. Ideal for: price alerts, workflow notifications, user communications, automated reports.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `gmail-send-email` |
| Category | Integrations |
| Connector | `pipedream:gmail` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `pipedream`, `integration`, `oauth`, `gmail`, `email`, `messaging`, `write`, `notification`, `alert`, `communication` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `to` | `string` | Yes | Recipient email address \(e.g., user@example.com\) |
| `subject` | `string` | Yes | Email subject line |
| `body` | `string` | Yes | Email body content \(supports HTML\) |
| `cc` | `string` | No | CC email addresses \(comma-separated\) |
| `bcc` | `string` | No | BCC email addresses \(comma-separated\) |
| `replyTo` | `string` | No | Reply-To email address |
| `inReplyTo` | `string` | No | Message ID to reply to \(for threading\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | Whether the email was sent successfully |
| `data` | `object` | No | Gmail API response data |
| `exports` | `object` | No | Exported values from the action |

## Examples

**Workflow node**

```json
{
  "type": "gmail-send-email",
  "payload": {
    "to": "example-to",
    "subject": "example-subject",
    "body": "example-body"
  },
  "children": [],
  "connector": {
    "type": "pipedream:gmail",
    "id": "conn_pipedream_gmail"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/gmail-send-email/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "to": "example-to",
    "subject": "example-subject",
    "body": "example-body"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.