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.0.tar.gz (8.2 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.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for llm_email-0.1.0.tar.gz
Algorithm Hash digest
SHA256 079a9a9c35d7d031e1d645f8c7c6e90c98a2b648ad783dcd077e6397fd4e2d1d
MD5 3c11550473a8e534c77123021d501c77
BLAKE2b-256 329ab22c6aec5829a40ca486bbc7d6e4164df3b28e2bdd54848fac0ea460ed3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_email-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd5a4b06b0ca70466d3fad6e864523832c9328f654ad6663494fcca4dbcc34a
MD5 2ac752802d676426e288420e658ed67f
BLAKE2b-256 2afee2a1af209c410629b1940d0c4b93e954761743d1c56c0f8f62c581c2d43a

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