gws-gmail-send

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

gmail +send

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
前置要求: 请阅读
../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

FlagRequiredDefaultDescription
--to
Recipient email address
--subject
Email subject
--body
Email body (plain text)
FlagRequiredDefaultDescription
--to
收件人邮箱地址
--subject
邮件主题
--body
邮件正文(纯文本)

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 — 所有邮件发送、读取和管理命令