gws-gmail-send
What it does
This command sends emails through Gmail. You can specify the recipient, subject, and body of the message.
When to use it
- βSending a quick reminder to a colleague.
- βSharing important information with a group.
- βConfirming an appointment via email.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-send/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSend an email to john@example.com with the subject 'Meeting' and the body 'Hi John, let's meet tomorrow at 10 AM.'β
5 new skills a week. 1 minute to read.
How it works
You tell it who to send to, the subject, and what to write in the email body. The command handles the rest, like formatting and sending the message.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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) |
--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
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 β Global flags and auth
- gws-gmail β All send, read, and manage email commands
FAQ
Can I send emails to multiple people?
Yes, just separate the email addresses with a comma.
Can I attach files?
Yes, using the '--attach' option followed by the filename.
Can I save the email as a draft instead of sending it?
Yes, use the '--draft' option.
Details
Popularity
- GitHub stars
- 32k
- Ranking position
- #9171
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- β¦
More skills from this repository
gws-admin-reports
32kHelps your agent get activity reports from Google Workspace. It collects audit and usage data.
gws-calendar-agenda
32kHelps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
gws-calendar-insert
32kLets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
gws-calendar
32kAllows your agent to manage calendars and events. It's useful for organizing your life and work.
Similar skills
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
configure-channel
394kTeaches your agent to connect a chat app such as Telegram to OpenClaw, store the bot token safely, and check that messages flow.
discord
394kHelps your agent read, send, edit, and react to Discord messages through OpenClaw, checking the exact message before making changes.