---
id: ssh2-recipe-email-drive-link
name: "recipe-email-drive-link"
url: https://skills.yangsir.net/skill/ssh2-recipe-email-drive-link
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-drive-sharing", "gmail-integration", "file-sharing-automation", "email-workflows", "productivity-automation"]
install_count: 25500
rating: 4.60 (148 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-email-drive-link

> 共享Google云端硬盘文件，并通过电子邮件发送文件链接及附带消息给收件人。

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

## Before / After 对比

### 快速分享云端文件，简化沟通流程。

## Readme

# Email a Google Drive File Link

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`, `gws-gmail`

Share a Google Drive file and email the link with a message to recipients.

## Steps

1. Find the file: `gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'`
2. Share the file: `gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'`
3. Email the link: `gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'`



---
*Source: https://skills.yangsir.net/skill/ssh2-recipe-email-drive-link*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-recipe-email-drive-link/markdown*