recipe-draft-email-from-doc

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Draft a Gmail Message from a Google Doc

从Google Doc起草Gmail邮件

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.
前提条件: 加载以下技能以执行此方案:
gws-docs
gws-gmail
从Google Doc读取内容并将其用作Gmail邮件的正文。

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 recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'
  1. 获取文档内容:
    gws docs documents get --params '{"documentId": "DOC_ID"}'
  2. 复制正文内容中的文本
  3. 发送邮件:
    gws gmail +send --to recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'