gws-gmail — All send, read, and manage email commands
1---2name: gws-gmail-send3description: Gmail: Send an email.4---56# gmail +send78> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.910Send an email1112## Usage1314```bash15gws gmail +send --to <EMAILS> --subject <SUBJECT> --body <TEXT>16```1718## Flags1920| Flag | Required | Default | Description |21|------|----------|---------|-------------|22| `--to` | ✓ | — | Recipient email address(es), comma-separated |23| `--subject` | ✓ | — | Email subject |24| `--body` | ✓ | — | Email body (plain text, or HTML with --html) |25| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) |26| `--attach` | — | — | Attach a file (can be specified multiple times) |27| `--cc` | — | — | CC email address(es), comma-separated |28| `--bcc` | — | — | BCC email address(es), comma-separated |29| `--html` | — | — | Treat --body as HTML content (default is plain text) |30| `--dry-run` | — | — | Show the request that would be sent without executing it |31| `--draft` | — | — | Save as draft instead of sending |3233## Examples3435```bash36gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi Alice!'37gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --cc bob@example.com38gws gmail +send --to alice@example.com --subject 'Hello' --body '<b>Bold</b> text' --html39gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --from alias@example.com40gws gmail +send --to alice@example.com --subject 'Report' --body 'See attached' -a report.pdf41gws gmail +send --to alice@example.com --subject 'Files' --body 'Two files' -a a.pdf -a b.csv42gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --draft43```4445## Tips4647- Handles RFC 5322 formatting, MIME encoding, and base64 automatically.48- Use --from to send from a configured send-as alias instead of your primary address.49- Use -a/--attach to add file attachments; it can be specified multiple times. Total size limit: 25MB.50- With --html, use fragment tags (<p>, <b>, <a>, <br>, etc.) — no <html>/<body> wrapper needed.51- Use --draft to save the message as a draft instead of sending it immediately.5253> [!CAUTION]54> This is a **write** command — confirm with the user before executing.5556## See Also5758- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth59- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands
Run npx skillmds@latest add mattforni/gws-gmail-send in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Gmail: Send an email. It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mattforni (@mattforni) published this skill. Their other Agent Skills are listed on their SkillMD profile.