G

gws-gmail-send

by @googleworkspacev
4.6(298)

用于通过Gmail发送电子邮件,支持指定收件人、主题和邮件内容。

gmail-apitransactional-emailemail-sendinggoogle-workspace-integrationGitHub
安装方式
npx skills add googleworkspace/cli --skill gws-gmail-send
compare_arrows

Before / After 效果对比

1
使用前

过去,发送邮件需要手动登录Gmail界面,逐一填写收件人、主题和内容,对于需要批量发送或集成到自动化流程中的场景非常不便。

使用后

现在,通过此功能,可以轻松地通过程序指定收件人、主题和邮件内容,实现自动化邮件发送,极大提升了工作效率,适用于各类通知和报告。

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

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量23.3K
评分4.6 / 5.0
版本
更新日期2026年5月23日
对比案例1 组

用户评分

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

为此 Skill 评分

0.0

兼容平台

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

时间线

创建2026年3月16日
最后更新2026年5月23日