Gmail: Send an email.
a3768d0PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Send an email
gws gmail +send --to <EMAILS> --subject <SUBJECT> --body <TEXT>
| 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 |
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
[!CAUTION] This is a write command — confirm with the user before executing.
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/gws-gmail-send · pinned to the source commit
git clone https://github.com/googleworkspace/cli.git
cd cli
git checkout a3768d0e82ad83cca2da97724e46bea4ff0e6dbd
mkdir -p ".claude/skills/gws-gmail-send"
cp -r "skills/gws-gmail-send" ".claude/skills/gws-gmail-send"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit a3768d0e82ad. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
References parent-directory traversal, which can escape a target directory.
Evidence: ../· fingerprint fa08499e14d0113b