Skip to main content

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.4.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_email-0.1.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_email-0.1.4.tar.gz.

File metadata

  • Download URL: llm_email-0.1.4.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for llm_email-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c4c37cc98330b69fa9df0e25614fc5d03aa532377e99e935b9279781d356d33d
MD5 8f68f8dfb65b446037c3628bd2aee04b
BLAKE2b-256 ed6c16f6d319cbe7f05f33f4ce32973dd11c531352ffd27f96bd2a15bf432c41

See more details on using hashes here.

File details

Details for the file llm_email-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: llm_email-0.1.4-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

Hashes for llm_email-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4738e7c81237c6622088229c7fd16c0230adbc9c1b0b5ce73e5c78a091a34622
MD5 4a9aeef28b4d4a57b7a2ba8a4e51da1d
BLAKE2b-256 6ebf509cee3f0d6fcfe45fc132f4b9bcb35f9854ff4b41e1216a76051bfa2c61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page