$npx skillfedfor your agent

django-anymail

Django email backends and webhooks for Amazon SES, Brevo, MailerSend, Mailgun, Mailjet, Mailtrap, Mandrill, Postal, Postmark, Resend, Scaleway TEM, SendGrid, SparkPost, and Unisender Go (EmailBackend, transactional email tracking and inbound email signals)

Worth itPyPI Python ModulesReleased Jul 20263.2M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_anymail-15.1-py3-none-any.whl
v15.1 · released 2026-07-30 · Python >=3.10 · 5 runtime deps: django, idna, requests, typing-extensions, urllib3

Yes. Django-anymail is a mature, actively maintained abstraction layer for transactional email that solves real vendor lock-in and portability problems. Low install friction, permissive license, no security vulnerabilities, and broad ESP support make it a solid choice for any Django project that needs reliable email delivery. Install it if you're using Django and any transactional ESP; the abstraction pays for itself the moment you need to switch providers.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Django 5.0 or later (or earlier versions with EMAIL_BACKEND configuration); each ESP may require its own API credentials.
  • Low install friction with a pure-Python wheel.
  • Active maintenance with a recent release (15 days old) and steady repository activity.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-07-30 (15 days) · last repo commit 2026-07-30 · 1,895 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,204,905 downloads/mo, #2,703 on PyPI

Verify before relying

pip install django-anymail[mailgun]

# In settings.py (Django 6.1+):
INSTALLED_APPS = ["anymail"]
MAILERS = {
    "default": {
        "BACKEND": "anymail.backends.mailgun.EmailBackend",
        "OPTIONS": {"api_key": "", "sender_domain": "mg.example.com"},
    }
}

# Then use Django's standard email:
from django.core.mail import send_mail
send_mail("Subject", "Body", "from@example.com", ["to@example.com"])
  • Whether all 14 listed ESPs are equally well-maintained or if some have degraded support.
  • Performance characteristics when sending high volumes or using batch transactional features.
  • Webhook reliability and latency for inbound message and tracking notification delivery.
Same gist for agents: .md · .json

What it is and what it does

Django-anymail is a Django email backend that abstracts away the differences between transactional email service providers (ESPs) like Mailgun, SendGrid, Amazon SES, Postmark, and others. Instead of writing code tied to one ESP's API, you configure Anymail to use your chosen provider and then use Django's standard email functions—send_mail, EmailMessage, EmailMultiAlternatives—which Anymail routes through that provider's API. It extends Django's built-in email with ESP-specific features like tags, metadata, click tracking, and inline images, while keeping your code portable so you can switch providers later without rewriting.

Anymail also handles receiving email through ESP webhooks, normalizing inbound messages into a consistent format, and converting ESP tracking notifications (bounces, opens, clicks) into Django signals. It supports batch transactional sends using template and merge features, full Unicode support, and simplified attachment handling. The package is actively maintained, compatible with Django 5.0–6.0 and Python 3.10–3.14, and has no known security vulnerabilities.

Use it for

  • Send transactional emails (password resets, order confirmations) through a reliable ESP without hardcoding a specific provider's API.
  • Track email opens, clicks, and bounces by receiving ESP webhooks and converting them to Django signals for analytics.
  • Switch email providers (e.g., from Mailgun to SendGrid) by changing one configuration line instead of rewriting email code.
  • Send templated batch emails with merge variables using your ESP's native template engine for performance.
  • Receive inbound email through an ESP's webhook and process attachments and headers in a normalized, portable way.
  • Add metadata and tags to sent emails for segmentation and debugging without writing provider-specific code.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Django-anymail is a mature, actively maintained abstraction layer for transactional email that solves real vendor lock-in and portability problems. Low install friction, permissive license, no security vulnerabilities, and broad ESP support make it a solid choice for any Django project that needs reliable email delivery. Install it if you're using Django and any transactional ESP; the abstraction pays for itself the moment you need to switch providers.

Install

django-anymail on PyPI

Before you install

Low install friction with a pure-Python wheel. Active maintenance with a recent release (15 days old) and steady repository activity. Supports current Python versions (3.10–3.14) and modern Django releases (5.0–6.0).

Requires Django 5.0 or later (or earlier versions with EMAIL_BACKEND configuration); each ESP may require its own API credentials.

License in practice

BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install django-anymail[mailgun]

# In settings.py (Django 6.1+):
INSTALLED_APPS = ["anymail"]
MAILERS = {
    "default": {
        "BACKEND": "anymail.backends.mailgun.EmailBackend",
        "OPTIONS": {"api_key": "", "sender_domain": "mg.example.com"},
    }
}

# Then use Django's standard email:
from django.core.mail import send_mail
send_mail("Subject", "Body", "from@example.com", ["to@example.com"])

Verify before relying

  • Whether all 14 listed ESPs are equally well-maintained or if some have degraded support.
  • Performance characteristics when sending high volumes or using batch transactional features.
  • Webhook reliability and latency for inbound message and tracking notification delivery.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
djangoidnarequeststyping-extensionsurllib3
MaintenanceActively maintained 15 days since the last release
Last repo commit
First released
Downloads3,204,905 / month, #2,703 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Communications :: EmailTopic :: Software Development :: Libraries :: Python Modules

Evidence: django_anymail-15.1-py3-none-any.whl

Tags

Capabilities
django email backend ESPtransactional email djangomailgun sendgrid django integrationdjango email service provideremail tracking webhooks djangoinbound email djangodjango email abstraction layer
Topics
email-backendesp-abstractiondjango-integration
PyPI keywords
AWS SESActiveCampaignAmazon SESBirdBrevoDjangoESPEmailBackendMailChimpMailerSendMailgunMailjetMailtrapMandrillPostalPostmarkResendScalewayScaleway TEMSendGridSendinBlueSimple Email ServiceSinchSparkPostTwilioUnisender Goemailemail backendemail service provideremail trackinginbound emailtransactional mailwebhook

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “django email backend ESP”

  • django-anymailSends and receives email in Django through multiple transactional…
  • django-celery-emailRoutes Django email sending through Celery task queues for…
  • django-naomidjango-naomi is a Django email backend that intercepts outgoing…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also django-templated-email · mailgun · mailtrap · repoze-sendmail · django-ses · django-sendgrid-v5 · sparkpost · mailjet-rest · django-post_office · dj-email-url