Skip to content
Skillpedia
Email & messaging32k Β· #9171

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.md

Copy 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

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.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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

  • 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

Original description by the author

Gmail: Send an email.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#9171
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