send-email
Skill1 starsChanged 4 months agoMITView on GitHub
Use when the user wants to send an email, email a file or document, send a message via email, forward information by email, or use HTML email templates. Trigger on any email-related request — including 'email this to...', 'forward this to...', 'send the report to...', 'attach this file and send'. Do NOT use for non-email communication like Slack or SMS.
- Reads credentials
18 other projects use a version of this.
Adopted by
Most recently taken up by
- muhammad-anas35/Nexus-ai-employeetheir own version, first seen Sep 25, 2026
- sree-data/job-search-agenttheir own version, first seen Sep 11, 2026
- aaronjmars/miroshark-aeontheir own version, first seen Aug 20, 2026
- aeonfun/aeontheir own version, first seen Aug 20, 2026
- genius-harry/auto-email-sendertheir own version, first seen Jul 2, 2026
- microsoft/vscode-java-packtheir own version, first seen Jul 2, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- jegly/Box★ 891same name
- aeonfun/aeon★ 766same name
- microsoft/vscode-java-pack★ 355same name
- refly-ai/refly-skills★ 203same name
- jonathanmalkin/jules★ 66same name
- aaronjmars/miroshark-aeon★ 18same name
- wangyendt/wayne-skills★ 9same name
- KirKruglov/claude-project-manager★ 6same name
- qhkm/zeptoclaw-skills★ 4same name
- genius-harry/auto-email-sender★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- calendar-apiSkill
- chinese-poetry-apiSkill
- deepseek-balanceSkill
- domain-querySkill
- enterprise-infoSkill
- epub-book-pipelineSkill
- freshrssSkill
- fun-asrSkill
- gaozhong-english-answer-parserSkill
- gotifySkill
- grillSkill
- img-recogSkill
- linkgoSkill
- mimo-ttsSkill
- personal-siyuan-standardsSkill
- scanned-pdf-to-epubSkill
- wake-on-lanSkill
- zurlSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration.
- Distinctive: line 62
Violating these rules is a bug: Every email HTML file must go through the designated directories:
- Very specific: line 70
All email HTML files must be saved in ~/.wmyskills/send-email/msg/ before sending with --file
- Distinctive: line 71
Do NOT save HTML in the repo directory, /tmp, Downloads, Desktop, or any other location
- Very specific: line 72
Do NOT create a different directory structure — send.py discovers files relative to this path
- Very specific: line 87
Lookup rule: when the recipient is a name (not a full address containing @), read this file and match the name exactly.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Send Email Skill
Send emails via SMTP from Claude Code. Supports plain text, HTML, attachments, and template-based workflow.
Execution Rule
Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration. If something is wrong, the script will fail with a clear error — check and fix only then.
python scripts/send.py <to> <subject> <mode> <body> [attachment...]Modes
| Mode | Purpose | Example Body |
--text | Plain text email | "Just saying hi" |
--html | Inline HTML string | "<b>Alert</b>" |
--file | HTML from file | ~/.wmyskills/send-email/msg/my.html |
Long/complex HTML must use --file with a file inside ~/.wmyskills/send-email/msg/.
Examples
Plain text:
python scripts/send.py user@example.com "Hello" --text "Just saying hi"Inline HTML (short):
python scripts/send.py user@example.com "Alert" --html "<b>Server is down</b>"HTML from file (long/complex HTML):
python scripts/send.py user@example.com "Newsletter" --file ~/.wmyskills/send-email/msg/my_newsletter.htmlWith attachment (any mode):
python scripts/send.py user@example.com "Files" --text "See attached" report.pdfEmail Content Rules
Never add reply prompts in the email body. This skill is send-only and has no ability to receive or read emails. Do not include phrases like "reply to this email", "if you have any questions, feel free to reply", or any other wording that invites the recipient to respond by email — the response would go to an inbox nobody reads.
File Storage Rules
Violating these rules is a bug. Every email HTML file must go through the designated directories:
| Directory | Purpose |
~/.wmyskills/send-email/templates/ | Read-only HTML templates. Copy from here, do not edit in place. |
~/.wmyskills/send-email/msg/ | The ONLY directory for --file HTML files. Save here, then pass the path. |
Rules:
- All email HTML files must be saved in
~/.wmyskills/send-email/msg/before sending with--file - Do NOT save HTML in the repo directory, /tmp, Downloads, Desktop, or any other location
- Do NOT create a different directory structure — send.py discovers files relative to this path
- The repo stores code, not runtime data. Runtime data goes in
~/.wmyskills/<skill-name>/
Contacts
Send to a named recipient instead of a full email address. The name-to-address mapping lives in a user-editable YAML file:
~/.wmyskills/send-email/contacts.yaml (~ = user home directory)
小明: xiaoming@example.com
张三: zhangsan@example.comLookup rule: when the recipient is a name (not a full address containing
@), read this file and match the name exactly. Use the resolved email as the
<to> argument. Never guess or invent an address.
| Situation | Action |
Recipient contains @ | Use as-is, no lookup |
| Name not found in file | Tell the user; list the available names from the file |
| File missing | Show the structure above and let the user create it, or use the address the user provided |
| YAML parse error | Ask the user to check the file format |
Security
Never read, display, or share the contents of scripts/.env or ~/.wmyskills/.env. They contain SMTP credentials. Use the table below only as a reference for which variables exist — do not read the actual .env files.
| Variable | Default | Description |
EMAIL_HOST | — | SMTP server hostname |
EMAIL_PORT | 465 | SMTP server port |
EMAIL_USER | — | Sender email address |
EMAIL_AUTH | — | SMTP password / app token |
EMAIL_NAME | ClaudeCode | Sender display name |
On Error
If sending fails:
Connection refused / timeout — EMAIL_HOST or EMAIL_PORT may be wrong; check with your provider.
Authentication failed — EMAIL_USER/EMAIL_AUTH may be wrong; some providers require an app-specific password.
smtplib exception — missing or incorrect env vars; SMTP exceptions are not caught and will print a traceback. Check EMAIL_HOST, EMAIL_USER, and EMAIL_AUTH are set correctly.
"file not found" / "attachment not found" — the path to the HTML file or attachment is invalid. Check the path and try again.
Notes
- Escape sequences (
\n,\t, etc.) in--textand--htmlbody arguments are decoded automatically - No
argparseis used — arguments are positional and order-sensitive - The
EMAIL_PORTdefaults to465(SSL); STARTTLS (587) is not supported - The
--filemode path supports~for home directory expansion
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

