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.1

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.1
File Size Uploaded Provenance Actions
entirius_django_email-4.4.1.tar.gz 170.4 kB Without provenance Details for entirius_django_email-4.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 337.5 kB

Release files / entirius_django_email-4.4.1.tar.gz

Download URL entirius_django_email-4.4.1.tar.gz
Size 170.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fdfdb39f05388a99e3ababc767d5c3ee84cde184db2d2622678a23e5f44d69d9
BLAKE2b-256 checksum
How to use checksums
28b10598a2271c8a3454ae752054bb7f1cd04dd4b98bfce201869202c12cbdd4
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.1-py3-none-any.whl

Download URL entirius_django_email-4.4.1-py3-none-any.whl
Size 167.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fd66e74b753a249c51aa3a2988a62c33bc82c145c9933a62b070725520c1335
BLAKE2b-256 checksum
How to use checksums
e89692dc3cdf4129fb3fc4d2a97e6512c120ef4aa82e2c799336fc76b2f5b9f9
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.1

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