G
gws-gmail-send
by @googleworkspacev
4.6(298)
用于通过Gmail发送电子邮件,支持指定收件人、主题和邮件内容。
安装方式
npx skills add googleworkspace/cli --skill gws-gmail-sendcompare_arrows
Before / After 效果对比
1 组使用前
过去,发送邮件需要手动登录Gmail界面,逐一填写收件人、主题和内容,对于需要批量发送或集成到自动化流程中的场景非常不便。
使用后
现在,通过此功能,可以轻松地通过程序指定收件人、主题和邮件内容,实现自动化邮件发送,极大提升了工作效率,适用于各类通知和报告。
SKILL.md
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) |
--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 |
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
- gws-shared — Global flags and auth
- gws-gmail — All send, read, and manage email commands
用户评价 (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日