Skip to main content

entirius-django-email

A Django module for transactional email in Entirius, the open-source modular ecommerce platform: branded templates per sales channel and language. It ships ready-made email services for account, checkout, loyalty, returns, newsletter and contact-form flows, and an admin API for editing branding and templates.

PyPI Python License: MPL-2.0

What it does

  • Sends transactional emails through ready-made services, one per flow (new account, password reset, virtual product, voucher, return confirmation, newsletter signup, booking and contact-form messages).
  • Stores branding per sales channel (colors, fonts, sender) with per-language overrides.
  • Resolves the email language with a fallback chain: requested language, then the channel default.
  • Lets a project override header and footer templates without forking the module (see __email_brand.example/).
  • Routes mail through per-channel SMTP settings when EMAIL_SMTP_CONFIGURATION_CHANNELS is set.
  • Exposes an admin API under api/email/v2/admin/ for channels, language configs and templates.

Installation

uv add entirius-django-email
pip install entirius-django-email
INSTALLED_APPS = [
    ...
    "django_utils",
    "django_regional",
    "django_email",
]

# urls.py
urlpatterns = [
    path("", include("django_email.urls")),
]

Optional settings: AVAILABLE_LANGUAGES, EMAIL_DEFAULT_LANGUAGE, DEFAULT_FROM_EMAIL, EMAIL_ADMIN_API_ENABLED, EMAIL_SMTP_CONFIGURATION_CHANNELS; reference with defaults in https://github.com/entirius/entirius-django-email/blob/develop/docs/configuration.md.

Quick start

from django_email.service.accounts.new_account import NewAccountEmail

# channel_idx names an existing django_email Channel row
NewAccountEmail(language="en", channel_idx="default").send(
    email=["customer@example.com"],
    username="Ada",
    confirmation_link="https://shop.example.com/confirm/abc",
)

Requirements

  • Python 3.11 or newer, Django 4.0 or newer.
  • Django REST Framework, djangorestframework-simplejwt, pydantic, drf-spectacular (admin API).
  • An SMTP server reachable through the Django email backend.
  • Entirius packages pulled in: entirius-django-utils, entirius-django-regional, entirius-py-process-logger.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos); the modules that own a flow call its email services.

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django)

Development and agent instructions: https://github.com/entirius/entirius-django-email/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-email/blob/develop/LICENSE.

Metadata

Release files for entirius-django-email 4.4.0

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

Source distribution (sdist)

Source distribution for entirius-django-email 4.4.0
File Size Uploaded Provenance Actions
entirius_django_email-4.4.0.tar.gz 170.3 kB Without provenance Details for entirius_django_email-4.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-email 4.4.0
File Interpreter ABI Platform Actions
entirius_django_email-4.4.0-py3-none-any.whl Python 3 none any Details for entirius_django_email-4.4.0-py3-none-any.whl

Total release size: 337.4 kB

Release files / entirius_django_email-4.4.0.tar.gz

Download URL entirius_django_email-4.4.0.tar.gz
Size 170.3 kB
Tags Source
SHA-256 checksum
How to use checksums
408ac33e3c59f1d62247275e00373a97b7204c53ccbb5e90bd0f4e0fedc56841
BLAKE2b-256 checksum
How to use checksums
344cd6faf7b7d803a0bfda216cf012653ad22a5564eba5e953c16caa14b95072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_django_email-4.4.0-py3-none-any.whl

Download URL entirius_django_email-4.4.0-py3-none-any.whl
Size 167.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5824c42d782ebc0b5d45493e071563402840fe5eb76a5c0b8a9b75704d2ef2fa
BLAKE2b-256 checksum
How to use checksums
6547c8142fe11697e15a266d6daedc1573996d4216e142d6bc7d3e8a5b5c417b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for entirius-django-email 4.4.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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