googleworkspace/cli✦ 精选0°

gws-gmail-send

仓库创建 2026年3月3日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由

核心发送能力,常用于自动通知和流程集成。

▸ 风险提示

需要 Google 帐号授权并授予 Gmail API 权限。

这个 Skill 做什么

通过 Gmail 发送邮件,支持主题和正文参数。

通过 gws CLI 用 Gmail 发送邮件,支持指定收件人、主题和正文,适合脚本化通知、自动化告警或批量发送场景。需要程序化发邮件但不想手写 SMTP 代码时直接调用命令即可。特点是依赖 gws 的认证机制,参数简单易用,方便整合到 CI 或自动化任务里。

▸ 展开 SKILL.md 英文原文

Gmail: Send an email.

办公文档Gmail发送邮件CLI通用
3.0w
Stars
1.8k
Forks
40
仓库内 Skill
+562
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-send/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-gmail-send/SKILL.md"
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

```bash
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) |
| `-
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有