附件可将本地文件内容发送给外部收件人
原文依据:5 处该命令允许附加一个或多个文件,并立即通过 Gmail 发送。若代理选错文件、收件人或附件中含敏感信息,文件内容会离开用户环境。
可能向收件人、抄送人或密送人披露报告、表格及其中的个人信息、商业数据或凭据。
该技能的实际用途是发送邮件,且活动参数允许附加一个或多个本地文件;附件总量可达 25MB。因此,在执行命令且附件或收件人选择错误时,文件内容会发送到外部邮箱。文档要求发送前取得用户确认,这降低了风险,但未说明确认时必须展示附件路径、收件人或敏感内容检查结果。用户可要求发送前完整列出这些信息,或先使用 `--draft`/`--dry-run`。
| `--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) |查看另外 4 个位置
gws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --from alias@example.comgws gmail +send --to alice@example.com --subject 'Report' --body 'See attached' -a report.pdfgws gmail +send --to alice@example.com --subject 'Files' --body 'Two files' -a a.pdf -a b.csvgws gmail +send --to alice@example.com --subject 'Hello' --body 'Hi!' --draft- Use --from to send from a configured send-as alias instead of your primary address.- Use -a/--attach to add file attachments. Can be specified multiple times. Total size limit: 25MB.- With --html, use fragment tags (<p>, <b>, <a>, <br>, etc.) — no <html>/<body> wrapper needed.Send an email> [!CAUTION]> This is a **write** command — confirm with the user before executing.