Agent skill
mailapp-send-email
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/mailapp-send-email
SKILL.md
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 "[email protected]" \
--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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?