Skip to content
Back to skills

Gws Gmail Send

ASecurity

Gmail helper for sending email via the gws CLI. Handles RFC 2822 formatting and base64 encoding automatically. Supports plain text, HTML, CC, and BCC.

  • 9 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 11, 2026
ai-agentsbashapisecurity

Works with

  • claude code
  • cursor
  • cli
  • api

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add nvdigitalsolutions/mcp-ai-wpoos --skill gws-gmail-send --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gws Gmail Send?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gws Gmail Send
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvdigitalsolutions-gws-gmail-send/badge)](https://www.skillsdirectory.com/skills/nvdigitalsolutions-gws-gmail-send)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
name: gws-gmail-send
version: 1.0.0
description: Gmail helper for sending email via the gws CLI. Handles RFC 2822 formatting and base64 encoding automatically. Supports plain text, HTML, CC, and BCC.
license: Apache-2.0
compatibility: Claude Code, Cursor, Gemini CLI, Codex CLI
---

# Gmail Send (gws-gmail-send)

> **PREREQUISITE:** Read the `gws-shared` skill for auth, global flags, and security rules.

Send emails quickly using the `gws gmail +send` helper.

## Usage

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

## Flags

| Flag | Required | Description |
|------|----------|-------------|
| `--to` | ✓ | Recipient email address(es), comma-separated |
| `--subject` | ✓ | Email subject line |
| `--body` | ✓ | Email body (plain text, or HTML when `--html` is set) |
| `--cc` | — | CC email address(es), comma-separated |
| `--bcc` | — | BCC email address(es), comma-separated |
| `--html` | — | Treat `--body` as HTML content |
| `--dry-run` | — | Show the request that would be sent, without executing |

## Examples

```bash
# Simple plain-text email
gws gmail +send \
  --to alice@example.com \
  --subject 'Hello from gws' \
  --body 'Hi Alice! This was sent by the gws CLI.'

# HTML email
gws gmail +send \
  --to alice@example.com \
  --subject 'Your report is ready' \
  --body '<h1>Report Ready</h1><p>Click <a href="https://example.com">here</a> to view.</p>' \
  --html

# With CC and BCC
gws gmail +send \
  --to alice@example.com \
  --subject 'Project Update' \
  --body 'See the attached notes.' \
  --cc bob@example.com \
  --bcc manager@example.com

# Preview without sending
gws gmail +send \
  --to alice@example.com \
  --subject 'Test' \
  --body 'Hello' \
  --dry-run

# Send to multiple recipients
gws gmail +send \
  --to 'alice@example.com,bob@example.com,carol@example.com' \
  --subject 'Team announcement' \
  --body 'The sprint review is tomorrow at 2pm.'
```

## Using the Raw API (for attachments)

The `+send` helper does not support file attachments. Use the raw `messages.send` API with a multipart MIME message for attachments:

```bash
# Base64-encode an RFC 2822 message with attachment
# (compose the MIME message first, then base64-encode it)
gws gmail users messages send \
  --params '{"userId": "me"}' \
  --json '{"raw": "<base64url-encoded-mime-message>"}'
```

> [!CAUTION]
> **This is a write command.** Always confirm with the user before sending an email. Use `--dry-run` to preview the request first.

## Tips

- Handles RFC 2822 formatting and base64url encoding automatically
- For threading (replies), use `gws gmail +reply` instead (see `gws-gmail` skill)
- For bulk email, loop over recipients and add delays to avoid rate limits
- Always include a meaningful subject — blank subjects are marked as spam

## See Also

- `gws-gmail` — Full Gmail API reference (threads, labels, filters, drafts)
- `gws-shared` — Authentication and global flags

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.