gws-gmail-send
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegmail +send
gmail +send
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
Send an email
前置要求: 请阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md命令生成它。gws generate-skills
发送邮件
Usage
Usage
bash
gws gmail +send --to <EMAIL> --subject <SUBJECT> --body <TEXT>bash
gws gmail +send --to <EMAIL> --subject <SUBJECT> --body <TEXT>Flags
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Recipient email address |
| ✓ | — | Email subject |
| ✓ | — | Email body (plain text) |
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | 收件人邮箱地址 |
| ✓ | — | 邮件主题 |
| ✓ | — | 邮件正文(纯文本) |
Examples
Examples
bash
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi Alice!'bash
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi Alice!'Tips
提示
- Handles RFC 2822 formatting and base64 encoding automatically.
- For HTML bodies, attachments, or CC/BCC, use the raw API instead:
- gws gmail users messages send --json '...'
[!CAUTION] This is a write command — confirm with the user before executing.
- 自动处理RFC 2822格式和base64编码。
- 若需发送HTML正文、附件或添加抄送/密送,请改用原始API:
- gws gmail users messages send --json '...'
[!CAUTION] 这是一个写入类命令——执行前请与用户确认。
See Also
另请参阅
- gws-shared — Global flags and auth
- gws-gmail — All send, read, and manage email commands
- gws-shared — 全局标志与认证
- gws-gmail — 所有邮件发送、读取和管理命令