File contents Skill: send-email
此技能用于向指定用户发送电子邮件。
正文的 HTML 渲染使用 cmarkgfm,也就是 GitHub Flavored Markdown (GFM) 渲染器。
场景:发送电子邮件
用于发送正式报告、状态更新或回复电子邮件。
使用方法
python send-email/scripts/send_email.py --to alice@example.com --subject "Hello" --ids "1,2" --markdown-body-file ~/.gateway/outbox/email-username_at_xx.com-yyyy-mm-ddTHH-MM-SSZ-reply-id-short-name.md
带附件示例:
python send-email/scripts/send_email.py --to alice@example.com --subject "Hello" --markdown-body-file ~/.gateway/outbox/email-username_at_xx.com-yyyy-mm-ddTHH-MM-SSZ-reply-id-short-name.md --attachments ~/.gateway/media/report.pdf ~/.gateway/media/screenshot.png
--to: 接收者邮箱。
--subject: 邮件主题。
--ids: (可选) 引用消息的 ID,逗号分隔。
--markdown-body-file: Markdown 格式的正文文件路径,按 GitHub Flavored Markdown 解析。
--attachments: (可选) 附件路径列表。支持多个参数,或在一个参数里用逗号分隔多个路径。
通用准则
在发送之前,请确保已将 Markdown 文件保存到 ~/.gateway/outbox/ 目录中。
文件命名规则:~/.gateway/outbox/email-username_at_xx.com-yyyy-mm-ddTHH-MM-SSZ-reply-id-short-name.md (时间戳使用 UTC 时间)。
对于包含多个 ID 的情况,脚本会自动在 Markdown 正文顶部添加引用链接。
附件文件需要在发送前已经存在于本地路径中;脚本会按文件名作为邮件附件名发送。
1 --- 2 name: send-email 3 description: Send email to the user. 4 --- 5 6 # Skill: send-email 7 8 此技能用于向指定用户发送电子邮件。 9 正文的 HTML 渲染使用 `cmarkgfm`,也就是 GitHub Flavored Markdown (GFM) 渲染器。 10 11 ## 场景:发送电子邮件 12 13 用于发送正式报告、状态更新或回复电子邮件。 14 15 ### 使用方法 16 17 ```bash 18 python send-email/scripts/send_email.py --to alice@example.com --subject "Hello" --ids "1,2" --markdown-body-file ~/.gateway/outbox/email-username_at_xx.com-yyyy-mm-ddTHH-MM-SSZ-reply-id-short-name.md 19 ``` 20 21 带附件示例: 22 23 ```bash 24 python send-email/scripts/send_email.py --to alice@example.com --subject "Hello" --markdown-body-file ~/.gateway/outbox/email-username_at_xx.com-yyyy-mm-ddTHH-MM-SSZ-reply-id-short-name.md --attachments ~/.gateway/media/report.pdf ~/.gateway/media/screenshot.png 25 ``` 26 27 - `--to`: 接收者邮箱。 28 - `--subject`: 邮件主题。 29 - `--ids`: (可选) 引用消息的 ID,逗号分隔。 30 - `--markdown-body-file`: Markdown 格式的正文文件路径,按 GitHub Flavored Markdown 解析。 31 - `--attachments`: (可选) 附件路径列表。支持多个参数,或在一个参数里用逗号分隔多个路径。 32 33 ## 通用准则 34 35 1. 在发送之前,请确保已将 Markdown 文件保存到 `~/.gateway/outbox/` 目录中。 36 2. 文件命名规则:`~/.gateway/outbox/email-username_at_xx.com-yyyy-mm-ddTHH-MM-SSZ-reply-id-short-name.md` (时间戳使用 UTC 时间)。 37 3. 对于包含多个 ID 的情况,脚本会自动在 Markdown 正文顶部添加引用链接。 38 4. 附件文件需要在发送前已经存在于本地路径中;脚本会按文件名作为邮件附件名发送。
picasso250/skills/tree/main/send-email commit 1d5fe1c6af
Frequently asked questions How do I install the Send Email skill? Run npx skillmds@latest add picasso250/send-email in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Send Email skill do? Send email to the user. It is listed under Productivity on SkillMD.
Is Send Email safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Send Email? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Send Email free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Send Email? picasso250 (@picasso250) published this skill. Their other Agent Skills are listed on their SkillMD profile.