Skip to content
Skillpedia
Email & messaging32k · #6269

gws-gmail-send

Allows your agent to send emails. Useful for automated communications or sending important information.

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.

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.'”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-send/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-gmail-send/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
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.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill gws-gmail-send

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-send/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

gmail +send

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to 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

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

Original description by the author

Gmail: Send an email.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6269
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills