Send emails via macOS Mail.app — compose, draft, send with AppleScript
Project description
llm-email
CMDOP Skill — install and use via CMDOP agent:
cmdop-skill install llm-email
Send emails via macOS Mail.app — compose, draft, send with AppleScript.
Install
pip install llm-email
Quick Start
from llm_email import send_email, init_db, close_db
await init_db()
result = await send_email(
to="user@example.com",
subject="Hello",
body="Message body",
)
print(result) # {"ok": True, "action": "send", ...}
await close_db()
CLI
python run.py send --to "a@b.com" --subject "Hello" --body "Message"
python run.py draft --to "a@b.com" --subject "Hello" --body "Message"
python run.py accounts
python run.py health
python run.py status
python run.py stats
All commands output JSON. Parse the ok field to check success.
Dashboard
email-dashboard
API
from llm_email import (
send_email, # send or draft an email
list_accounts, # list Mail.app accounts
check_health, # check if Mail.app is running
show_status, # recent sent email log
show_stats, # extended statistics
check_duplicate, # deduplication check
)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llm_email-0.1.1.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
llm_email-0.1.1-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file llm_email-0.1.1.tar.gz.
File metadata
- Download URL: llm_email-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbee7452a98b0c47293d4d821f898dab5857cd4cc8ecec783a2961a518b65653
|
|
| MD5 |
b5fc9ad35f221e3770ad8c4745c3195f
|
|
| BLAKE2b-256 |
74e5d7960557314e6ace0bbb5fc12db509968a7beb983b259a6ec1add2f94f4c
|
File details
Details for the file llm_email-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_email-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c673526f7e3e397a30c4e00cda6bfcbe80078fb2aeb1241f4f841aa9f39f0d
|
|
| MD5 |
b985c4b3c202b5602a99aff5608bc9dc
|
|
| BLAKE2b-256 |
15d3840d1aab130b1e401aa7f27843f342480090f12afce7ce1022fb4742e023
|