G

gws-gmail-send

by @googleworkspacev
4.6(298)

Send emails via Gmail, supporting specified recipients, subject, and email content.

gmail-apitransactional-emailemail-sendinggoogle-workspace-integrationGitHub
Installation
npx skills add googleworkspace/cli --skill gws-gmail-send
compare_arrows

Before / After Comparison

1
Before

Previously, sending emails required manually logging into the Gmail interface and individually filling in recipients, subject, and content. This was highly inconvenient for scenarios requiring bulk sending or integration into automated workflows.

After

Now, with this feature, it's easy to programmatically specify recipients, subject, and email content, enabling automated email sending. This greatly improves work efficiency and is suitable for various notifications and reports.

SKILL.md

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

FlagRequiredDefaultDescription
--toRecipient email address(es), comma-separated
--subjectEmail subject
--bodyEmail body (plain text, or HTML with --html)
--ccCC email address(es), comma-separated
--bccBCC email address(es), comma-separated
--htmlTreat --body as HTML content (default is plain text)
--dry-runShow the request that would be sent without executing it

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 'Hi!' --bcc secret@example.com
gws gmail +send --to alice@example.com --subject 'Hello' --body '<b>Bold</b> text' --html

Tips

  • Handles RFC 2822 formatting and base64 encoding automatically.
  • For attachments, use the raw API instead: gws gmail users messages send --json '...'

[!CAUTION] This is a write command — confirm with the user before executing.

See Also

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs23.3K
Rating4.6 / 5.0
Version
Updated2026年5月23日
Comparisons1

User Rating

4.6(298)
5
23%
4
51%
3
23%
2
2%
1
0%

Rate this Skill

0.0

Compatible Platforms

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

Timeline

Created2026年3月16日
Last Updated2026年5月23日