mailapp-send-email
Skill5 starsChanged 9 months agoMITView on GitHub
Send emails through the macOS Mail app using AppleScript. Use when a task requires composing or sending email via Mail.app (including to/cc/bcc, subject, body, or attachments), or when the user asks for Mail app automation or osascript-based email sending.
In this repository13 other files it gives its agents.
- apple-music-playerSkill
- apple-notesSkill
- applescript-open-appSkill
- confettiSkill
- ffmpeg-video-editor-h265Skill
- githubSkill
- git-searchSkill
- launchd-non-apple-jobsSkill
- open-meteo-weatherSkill
- opml-readerSkill
- playwright-cliSkill
- saySkill
- screen-recorderSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use the bundled AppleScript to compose and optionally send Mail.app messages with structured inputs (to/cc/bcc/subject/body/attachments).
- Very specific: line 12
Run the AppleScript via osascript with --to, --subject, and --body.
- Very specific: line 22
Use these flags. Only --to, --subject, and --body are required.
- Distinctive: line 32
Create a new outgoing message in Mail.app.
- Very specific: line 34
If --attach is provided, add each file path as an attachment.
- Distinctive: line 37
If Mail.app automation prompts appear, grant permissions in System Settings -> Privacy & Security -> Automation.
- Distinctive: line 38
If attachments fail, ensure paths are absolute POSIX paths and the files exist.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mail.app Send Email
Overview
Use the bundled AppleScript to compose and optionally send Mail.app messages with structured inputs (to/cc/bcc/subject/body/attachments).
Quick Start
Run the AppleScript via osascript with --to, --subject, and --body. Pass comma-separated lists for multiple recipients or attachments.
osascript /Users/ivancampos/.codex/skills/mailapp-send-email/scripts/send_mail.applescript \
--to "test@test.com" \
--subject "hello" \
--body "testing"Inputs
Use these flags. Only --to, --subject, and --body are required.
--tosingle email or comma-separated list--ccoptional comma-separated list--bccoptional comma-separated list--subjectsubject line--bodymessage body--attachoptional comma-separated POSIX file paths--sendoptionaltrue|false(defaulttrue, send immediately)
Behavior
- Create a new outgoing message in Mail.app.
- By default send immediately. If
--send false, leave the draft visible for review. - If
--attachis provided, add each file path as an attachment.
Troubleshooting
- If Mail.app automation prompts appear, grant permissions in System Settings -> Privacy & Security -> Automation.
- If attachments fail, ensure paths are absolute POSIX paths and the files exist.
Resources
scripts/
scripts/send_mail.applescriptCreate a Mail.app message with optional cc/bcc/attachments and optional immediate send.
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.

