gws-gmail-send
透過 CLI 傳送 Gmail 電子郵件
無需離開終端機,即可透過 Gmail 以程式化方式傳送電子郵件。此技能將 Claude Code 與 Google Workspace CLI 整合,支援傳送具有附件、HTML 格式與進階選項的郵件。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "gws-gmail-send". Send an email to alice@example.com with subject 'Hello' and body 'Hi Alice!'
النتيجة المتوقعة:
Email sent successfully to alice@example.com with subject 'Hello'
استخدام "gws-gmail-send". Send an email with attachment to team@company.com with subject 'Report' and attach report.pdf
النتيجة المتوقعة:
Email sent successfully to team@company.com with subject 'Report' and 1 attachment (report.pdf)
استخدام "gws-gmail-send". Save as draft: email to bob@example.com, subject 'Draft', body 'Testing'
النتيجة المتوقعة:
Draft saved successfully for bob@example.com with subject 'Draft'
التدقيق الأمني
آمنAll 20 static analysis findings are false positives from Markdown code examples. The external_commands flags (15 occurrences) are bash documentation blocks showing gws CLI usage. The filesystem flags (3 occurrences) are relative path references in documentation links. This is legitimate documentation for a Gmail CLI tool with no executable code or security risks.
عوامل الخطر
⚙️ الأوامر الخارجية (4)
📁 الوصول إلى نظام الملفات (2)
درجة الجودة
ماذا يمكنك بناءه
自動化郵件通知
當部署完成或測試失敗時,從腳本或 CI/CD 管線傳送自動化通知。
批次郵件傳送
結合 Claude Code、CSV 資料與 gws CLI,傳送個人化郵件給多位收件人。
報表分發
依排程自動附加並傳送生成的報表(PDF、CSV)給利害關係人。
جرّب هذه الموجهات
Send an email to alice@example.com with subject 'Project Update' and body 'The project is complete.'
Send an email to team@company.com with subject 'Monthly Report' and body 'Please find attached the report.' Attach the file report.pdf
Send an HTML email to users@example.com with subject 'Newsletter' and body '<p>Welcome to our newsletter!</p><br><b>Feature highlights:</b><br>- New dashboard<br>- Faster performance'
Send from alias@company.com to client@example.com with subject 'Proposal' and body 'Please review our proposal.' CC manager@company.com and BCC archives@company.com
أفضل الممارسات
- 由於此操作會傳送真實郵件,執行傳送指令前務必向使用者確認
- 先使用 --dry-run 旗標預覽將傳送的要求,實際上不會傳送郵件
- 結合 --draft 旗標先將郵件儲存為草稿供審查,之後再傳送給收件人
تجنب
- 切勿在未經使用者明確確認的情況下傳送郵件,因為郵件傳送後無法撤回
- 避免超過 25MB 的附件限制,否則會導致傳送作業失敗
- 使用 --html 旗標時,請勿使用包含 <html> 或 <body> 標籤的完整 HTML 文件結構