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

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_email-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 8e11b9282aad5d5a2776336712897f03bc976d5a401f5959e0d46f186e46f662
MD5 a7598c6c6e80ce944ecc608cc7eefe9f
BLAKE2b-256 99159c79db6ae66b00cf584adf1bdd69d6651e0f2613b929a872aa7a31d06f9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_email-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a45e05636465ee2908586d0e26e4091e1f007f8f623499aeb1370cf34941245d
MD5 d39156862fb1e76f8f4afde2aa68820a
BLAKE2b-256 4eccbde8f821cb0aba42120b5d1578030049d1c1b1987e8d1f1c9e443ea69833

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