Skip to main content

simple_module_mail

Outgoing mail for simple_module apps. The module owns the transport (SMTP via aiosmtplib, or a console backend that logs each message) and its settings, and installs a process-level sender that any module can use through simple_module_core.mail without knowing whether mail is configured.

The default backend is console: messages are logged, nothing is delivered. Switch to smtp and fill in the server details to deliver real email.

Install

Add the package to your host and re-sync. Discovery picks it up from the simple_module entry point, no host code changes:

# host/pyproject.toml
dependencies = ["simple_module_mail"]
uv sync --all-packages

Usage

  1. Sign in as an admin and open Settings -> Modules -> Mail.
  2. Set backend to smtp and fill smtp_host, smtp_port, smtp_username, smtp_password (masked in the UI), smtp_from and smtp_tls. Saving rebuilds the sender live, no restart needed.
  3. Use Test connection to run the mail.mailer health check. It logs in to the server and hangs up without sending anything.

From code, send through the core interface:

from simple_module_core.mail import MailMessage, current_mail_sender

await current_mail_sender().send(
    MailMessage(to="a@example.com", subject="Hello", text="Plain body")
)

Code that may run in the outbox worker (no app) calls await resolve_mail_sender(db) instead; the module installs a resolver that builds the sender from the stored settings. sender.delivers_email is False for the console backend, so screens can fall back to showing a link.

Settings stored by earlier versions as users.mailer / users.smtp_* are moved to mail.backend / mail.smtp_* by a data migration.

Metadata

Release files for simple-module-mail 0.0.44

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-module-mail 0.0.44
File Size Uploaded Provenance Actions
simple_module_mail-0.0.44.tar.gz 10.7 kB With provenance Details for simple_module_mail-0.0.44.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-module-mail 0.0.44
File Interpreter ABI Platform Actions
simple_module_mail-0.0.44-py3-none-any.whl Python 3 none any Details for simple_module_mail-0.0.44-py3-none-any.whl

Total release size: 21.4 kB

Release files / simple_module_mail-0.0.44.tar.gz

Download URL simple_module_mail-0.0.44.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f2b2736c264e391eee75bd320d9fb83c83b94d7c765fe59bf5cfea0e583260cf
BLAKE2b-256 checksum
How to use checksums
1048ad2101343e64b28d8129f6c508a2f507065c7b6fc5cdc4fc26c5e5a8ce26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / simple_module_mail-0.0.44-py3-none-any.whl

Download URL simple_module_mail-0.0.44-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cc0ad4406d3475ea1f9da92edf364fc543b0be0aec73bb3c37feec2e11bd4aa
BLAKE2b-256 checksum
How to use checksums
bf578b54d7b838aed645290297f9850f3eb97e79decaeb9a0202c8ff9b34d119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for simple-module-mail 0.0.44

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for simple_module_mail-0.0.44.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page