# 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.

- **Type:** Skill
- **Install:** `agentstack add skill-ivancampos-agents-mailapp-send-email`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [IvanCampos](https://agentstack.voostack.com/s/ivancampos)
- **Installs:** 0
- **Category:** [Communication](https://agentstack.voostack.com/c/communication)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [IvanCampos](https://github.com/IvanCampos)
- **Source:** https://github.com/IvanCampos/agents/tree/main/skills/mailapp-send-email
- **Website:** https://ivancampos.com

## Install

```sh
agentstack add skill-ivancampos-agents-mailapp-send-email
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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.

```bash
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.
- `--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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [IvanCampos](https://github.com/IvanCampos)
- **Source:** [IvanCampos/agents](https://github.com/IvanCampos/agents)
- **License:** MIT
- **Homepage:** https://ivancampos.com

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ivancampos-agents-mailapp-send-email
- Seller: https://agentstack.voostack.com/s/ivancampos
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
