Metadata-Version: 2.4
Name: nicemail
Version: 0.2.2
Summary: A simple email package
Author-email: Rajinder Mavi <rajinder@mavi.phd>
License: MIT
Project-URL: Homepage, https://github.com/rajindermavi/nicemail
Project-URL: Issues, https://github.com/rajindermavi/nicemail/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=46.0.3
Requires-Dist: msal>=1.34.0
Requires-Dist: platformdirs>=4.5.1
Requires-Dist: requests>=2.32.5
Provides-Extra: dev
Requires-Dist: pytest>=9.0.2; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

# Nicemail

Nicemail is a small, explicit email-sending library for personal and small-team use.
It favors clarity and safety over abstraction.

## Quickstart
```python
from nicemail import EmailClient

client = EmailClient(backend="dry_run", out_dir="dry_run_out")
client.send(
    to="you@example.com",
    subject="Hello from Nicemail",
    body_text="This is a dry-run message.",
    from_address="me@example.com",
)
```

## CLI
```bash
nicemail dry-run --to you@example.com --from me@example.com --subject "Hello" --body "Test" --out-dir ./dry_run_out
nicemail send --backend ms_graph --to you@example.com --subject "Hello" --body "Hello from Nicemail" --email me@example.com --client-id YOUR_CLIENT_ID
```

