mailapp-send-email

mailapp-send-email is a skill for Codex from IvanCampos/agents. It costs 61 tokens per session (419 once invoked), scanned A, original, MIT.

An Apple Mail automation that creates and sends email messages from structured details such as recipients, subject, body, and attachments. Apple Mail is macOS’s built-in email app.

In plain words
What is it for?
It helps compose or send emails with To, CC, BCC, subjects, bodies, and file attachments.
Why use it?
It removes repetitive manual message composition and supports sending or leaving messages as drafts for review.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/ivancampos/.codex/skills/mailapp-send-email/scripts/send_mail.applescript.

Good fit It helps compose or send emails with To, CC, BCC, subjects, bodies, and file attachments.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mailapp-send-email

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivancampos/agents/mailapp-send-email.svg)](https://agentmods.dev/skills/ivancampos/agents/mailapp-send-email)
Your own site
<a href="https://agentmods.dev/skills/ivancampos/agents/mailapp-send-email"><img src="https://agentmods.dev/badge/skills/ivancampos/agents/mailapp-send-email.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00419
Opus 5 $0.00030 $0.00210
Sonnet 5 $0.00012 $0.00084
Haiku 4.5 $0.00006 $0.00042

Measured 7d ago against content hash 2e5cc30903bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

mailapp-send-email scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mailapp-send-email/SKILL.md · 43 lines

What it actually says

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.

  • --to single email or comma-separated list
  • --cc optional comma-separated list
  • --bcc optional comma-separated list
  • --subject subject line
  • --body message body
  • --attach optional comma-separated POSIX file paths
  • --send optional true|false (default true, 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 --attach is 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.applescript Create a Mail.app message with optional cc/bcc/attachments and optional immediate send.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 43 lines · 61 tokens per session scan A 2e5cc30903bd

Subscribe to this mod's changes

mailapp-send-email is a skill published in the GitHub repository IvanCampos/agents (5 stars, last pushed 6mo ago), licensed MIT. It adds 61 tokens to every session and 419 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.