---
id: ssh2-recipe-draft-email-from-doc
name: "recipe-draft-email-from-doc"
url: https://skills.yangsir.net/skill/ssh2-recipe-draft-email-from-doc
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-docs", "gmail-drafts", "content-generation", "email-composition", "productivity-automation"]
install_count: 25600
rating: 4.60 (148 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-draft-email-from-doc

> 从Google Doc读取内容，并将其用作Gmail邮件的正文。

**Stats**: 25,600 installs · 4.6/5 (148 reviews)

## Before / After 对比

### 快速从文档生成邮件，提升写作效率。

## Readme

# 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 recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'`



---
*Source: https://skills.yangsir.net/skill/ssh2-recipe-draft-email-from-doc*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-recipe-draft-email-from-doc/markdown*