Recipe Draft Email From Doc

作者 googleworkspacea3768d0e82ad无许可证31K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Read content from a Google Doc and use it as the body of a Gmail message.

AI 生成的概览

读取 Google 文档的文本,并将其用作 Gmail 邮件的正文。

功能
该配方通过 gws docs 命令获取 Google 文档的内容,并复制文档正文文本。随后将这段文本作为 Gmail 邮件正文,连同指定主题发送给指定收件人。它仅包含操作说明,最终产出一封已发送的邮件。
适用场景
当邮件正文已存在于 Google 文档中并需要通过邮件发送时使用。适用于在文档中撰写、再通过 Gmail 分发的简报类更新或类似内容。
运行要求
需要 gws 命令行工具,并加载 gws-docs 与 gws-gmail 技能,同时具备对 Google 文档和 Gmail 的已认证访问权限。不附带脚本,仅为操作说明。

Draft a Gmail Message from a Google Doc

PREREQUISITE: Load the following skills to execute this recipe: gws-docs, gws-gmail

Read content from a Google Doc and use it as the body of a Gmail message.

Steps

  1. Get the document content: gws docs documents get --params '{"documentId": "DOC_ID"}'
  2. Copy the text from the body content
  3. Send the email: gws gmail +send --to [email protected] --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'

来源与署名

来源:googleworkspace/cli位于skills/recipe-draft-email-from-doc提交a3768d0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架