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.5.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.5-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_email-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 c7a974fd610dfcedea577a746c08b09213052420238fd6e5cb9c824a528ea989
MD5 c3445b7baec406523f1aa4d07ce8ee24
BLAKE2b-256 11123092a89e324c21f6795e6fb5e4809a56bae16c1eaf89bab9e4841568d1ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_email-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bcf4460d971eb6fc7991be8f2cacbe06bd80df3cccbb741a35464af7bd514531
MD5 cf04fea4356800a919574aa25dc25dec
BLAKE2b-256 8f80d6707fda5611f186fa82352c71db868c34903e377933235e4e3431b80377

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