---
name: apple-icloud-email
description: "Send emails via Apple iCloud SMTP from Hermes."
trigger: Use when needing to send emails via Apple iCloud SMTP from the Hermes environment, or when the user asks to email results to themselves.
---

# Apple iCloud Email Sender

## Overview
Send emails programmatically via Apple iCloud SMTP (smtp.mail.me.com:587 with STARTTLS).

## Credentials (stored in environment)
- APPLE_EMAIL: sage.stockmans@pm.me@icloud.com
- APPLE_APP_PASSWORD: etpi-ablw-jzvd-uivx

## Generic Sender Script
Location: `/home/thesage/.hermes/scripts/send_apple_email.py`

Usage:
```bash
python3 /home/thesage/.hermes/scripts/send_apple_email.py \
  --to sage.stockmans@pm.me \
  --subject "Subject Here" \
  --body "Email body text"
```

Or pipe content:
```bash
cat file.txt | python3 /home/thesage/.hermes/scripts/send_apple_email.py \
  --to sage.stockmans@pm.me \
  --subject "Subject Here" \
  --body -
```

## Morning Briefing Script
Location: `/home/thesage/.hermes/scripts/morning_briefing.py`
Generates: calendar events, news headlines, stock prices, compliment for Caoil Heather Dezeure.

Sent via: `/home/thesage/.hermes/scripts/send_briefing_apple_email.py`

## Recipient
Default: sage.stockmans@pm.me

## Cron Jobs Using This
- Morning Briefing (daily 07:00)
- Stock Price Monitor (weekdays 13:00-21:00)
