---
title: Gws Gmail Send Skill for Claude Code
canonical: https://skillselion.com/skills/googleworkspace/cli/gws-gmail-send
content_type: text/markdown
description: "gws-gmail-send is an agent skill for sending Gmail via the gws CLI with recipients, subject, body, attachments, HTML, drafts, and dry-run preview."
---

# Gws Gmail Send Skill

Title: Gws Gmail Send Skill for Claude Code

> gws-gmail-send is an agent skill for sending Gmail via the gws CLI with recipients, subject, body, attachments, HTML, drafts, and dry-run preview.

Canonical: https://skillselion.com/skills/googleworkspace/cli/gws-gmail-send

gws-gmail-send is an agent skill for sending Gmail via the gws CLI with recipients, subject, body, attachments, HTML, drafts, and dry-run preview.

The gws-gmail-send skill documents the Gmail send command for the Google Workspace gws CLI, version 0.22.5 in the productivity category. It requires reading the shared gws-shared SKILL.md first for authentication, global flags, and security rules, or running gws generate-skills if that file is missing. The command sends email with required to, subject, and body flags plus optional from alias, attachments, CC, BCC, HTML body mode, dry-run preview, and draft saving. Examples cover plain text, HTML fragments without html or body wrappers, multiple attachments up to 25MB total, send-as aliases, and draft workflows. Tips note automatic RFC 5322 formatting, MIME encoding, and base64 handling. Because this is a write command, the skill instructs agents to confirm with the user before executing sends. It links to gws-shared for auth and the broader gws-gmail skill for read and manage commands.

## Key facts

- Installs: 76,573
- GitHub stars: 32,354
- Author: googleworkspace
- Repository: googleworkspace/cli
- Works in Grok Bot: SKILL.md frontmatter name `gws-gmail-send` and a description are valid. The instructions do not depend on Claude Code hooks, slash commands, the Task or subagent tool, or the Claude CLI. Checked 2026-11-17.
- Install command: `npx skills add https://github.com/googleworkspace/cli --skill gws-gmail-send`
- Last updated: November 3, 2026

## What Gws Gmail Send does

Send Gmail messages from the gws CLI with recipients, subject, body, attachments, CC, BCC, HTML, drafts, and dry-run preview.

How do I send Gmail from an agent using the gws CLI with correct flags, auth, and safety checks?

Correctly formatted gws gmail +send commands with RFC 5322 MIME handling and user-confirmed write operations.

Best for: Agents automating Gmail sends through the Google Workspace gws CLI with shared auth rules.

Not for: Skip when you need Gmail read, search, or label management instead of sending messages.

- Documents gws gmail +send with required --to, --subject, and --body flags plus optional CC, BCC, and --from alias.
- Supports HTML bodies via --html using fragment tags without full html or body wrappers.
- Allows multiple -a/--attach file attachments with a documented 25MB total size limit.
- Provides --dry-run to preview the request and --draft to save instead of sending immediately.
- Flags this as a write command that requires user confirmation before execution.

## SKILL.md

## gmail +send

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Send an email

### Usage

```bash
gws gmail +send --to <EMAILS> --subject <SUBJECT> --body <TEXT>
```

### Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--to` | ✓ |  -  | Recipient email address(es), comma-separated |
| `--subject` | ✓ |  -  | Email subject |
| `--body` | ✓ |  -  | Email body (plain text, or HTML with --html) |
| `--from` |  -  |  -  | Sender address (for send-as/alias; omit to use account default) |
| `--attach` |  -  |  -  | Attach a file (can be specified multiple times) |
| `--cc` |  -  |  -  | CC email address(es), comma-separated |
| `--bcc` |  -  |  -  | BCC email address(es), comma-separated |
| `--html` |  -  |  -  | Treat --body as HTML content (default is plain text) |
| `--dry-run` |  -  |  -  | Show the request that would be sent without executing it |
| `--draft` |  -  |  -  | Save as draft instead of sending |

### Examples

```bash
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi Alice!'
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --cc bob@example.com
gws gmail +send --to alice@example.com --subject 'Hello' --body '<b>Bold</b> text' --html
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --from alias@example.com
gws gmail +send --to alice@example.com --subject 'Report' --body 'See attached' -a report.pdf
gws gmail +send --to alice@example.com --subject 'Files' --body 'Two files' -a a.pdf -a b.csv
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --draft
```

### Tips

- Handles RFC 5322 formatting, MIME encoding, and base64 automatically.
- Use --from to send from a configured send-as alias instead of your primary address.
- Use -a/--attach to add file attachments. Can be specified multiple times. Total size limit: 25MB.
- With --html, use fragment tags (<p>, <b>, <a>, <br>, etc.)  -  no <html>/<body> wrapper needed.
- Use --draft to save the message as a draft instead of sending it immediately.

> [!CAUTION]
> This is a **write** command  -  confirm with the user before executing.

### See Also

- [gws-shared](../gws-shared/SKILL.md)  -  Global flags and auth
- [gws-gmail](../gws-gmail/SKILL.md)  -  All send, read, and manage email commands

## Gws Gmail Send FAQ

### Who is gws-gmail-send for?

Agents using the Google Workspace gws CLI who need to send Gmail with attachments, HTML, CC, BCC, or drafts.

### When should I use gws-gmail-send?

When composing outbound Gmail via gws with --to, --subject, and --body, or when saving drafts and previewing with --dry-run.

### Is gws-gmail-send safe to install?

Review the Security Audits panel on this page before installing in production.

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
