gws-gmail-send
Installation
Summary
Send emails via Gmail with support for attachments, HTML formatting, and send-as aliases.
- Requires recipient email(s), subject, and body text; supports CC, BCC, and optional sender address for send-as aliases
- Handles file attachments up to 25MB total, with multiple files supported via repeated
--attachflags - Supports both plain text and HTML email bodies; HTML fragments do not require wrapper tags
- Includes
--dry-runflag to preview the request before sending, and automatic RFC 5322 formatting and MIME encoding
SKILL.md
gmail +send
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Send an email
Usage
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) |
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.2Kgws-docs
Read and write Google Docs.
26.1Kgws-drive
Google Drive: Manage files, folders, and shared drives.
26.0Kgws-sheets
Google Sheets: Read and write spreadsheets.
24.7Kgws-calendar
Google Calendar: Manage calendars and events.
24.7Kgws-docs-write
Google Docs: Append text to a document.
21.8K