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.3.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.3.0
File Size Uploaded Provenance Actions
entirius_django_email-4.3.0.tar.gz 133.3 kB Without provenance Details for entirius_django_email-4.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 268.5 kB

Release files / entirius_django_email-4.3.0.tar.gz

Download URL entirius_django_email-4.3.0.tar.gz
Size 133.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c8390ec07c14bc8d651c037c7addbd15aaa796a390c3a16961cf7829d625e13
BLAKE2b-256 checksum
How to use checksums
c3efb90cb79d18b6b36e812546aeaba21bf75c4d0ef98b893b12f1cdf7d17e93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.3.0-py3-none-any.whl

Download URL entirius_django_email-4.3.0-py3-none-any.whl
Size 135.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9245f1ef91f50542dc8342ea2f1d41c40936d344230c1e494d1502edaaabf02
BLAKE2b-256 checksum
How to use checksums
53ef1d883a60a71e1952f80fae2bbc24761ed9da853a7af7e3e78ff5d9315d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.3.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