gws-gmail-send by googleworkspace/cli
npx skills add https://github.com/googleworkspace/cli --skill gws-gmail-send前提条件: 请先阅读
../gws-shared/SKILL.md以了解身份验证、全局标志和安全规则。如果该文件缺失,请运行gws generate-skills命令来创建它。
发送一封电子邮件
gws gmail +send --to <EMAILS> --subject <SUBJECT> --body <TEXT>
| 标志 | 必需 | 默认值 | 描述 |
|---|---|---|---|
--to | ✓ | — | 收件人邮箱地址(多个地址用逗号分隔) |
--subject |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| ✓ |
| — |
| 邮件主题 |
--body | ✓ | — | 邮件正文(纯文本,或使用 --html 标志指定 HTML) |
--from | — | — | 发件人地址(用于发送身份/别名;省略则使用账户默认地址) |
--attach | — | — | 附加文件(可多次指定) |
--cc | — | — | 抄送邮箱地址(多个地址用逗号分隔) |
--bcc | — | — | 密送邮箱地址(多个地址用逗号分隔) |
--html | — | — | 将 --body 内容视为 HTML(默认为纯文本) |
--dry-run | — | — | 显示将要发送的请求但不实际执行 |
--draft | — | — | 保存为草稿而不是立即发送 |
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
--from 可以从已配置的发送身份别名发送邮件,而不是使用您的主地址。-a/--attach 添加文件附件。可以多次指定。总大小限制:25MB。--html 时,可以使用片段标签(<b>, <i>, <a>, <span> 等)—— 不需要 <html>/<body> 包装器。--draft 将邮件保存为草稿,而不是立即发送。[!CAUTION] 这是一个写入命令 —— 在执行前请与用户确认。
每周安装量
8.3K
代码仓库
GitHub 星标
22.3K
首次出现
2026年3月4日
安全审计
安装于
codex7.7K
opencode7.7K
gemini-cli7.6K
github-copilot7.6K
cursor7.6K
amp7.6K
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Send an email
gws gmail +send --to <EMAILS> --subject <SUBJECT> --body <TEXT>
| 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 |
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
[!CAUTION] This is a write command — confirm with the user before executing.
Weekly Installs
8.3K
Repository
GitHub Stars
22.3K
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.7K
opencode7.7K
gemini-cli7.6K
github-copilot7.6K
cursor7.6K
amp7.6K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装