Skip to main content

A simple Django email backend which uses Huey.

Usage

Add the app to your settings:

# settings.py

INSTALLED_APPS = [
    ...
    "huey.contrib.djhuey",
    "hueymail",
    ...
]

and use it as your email backend:

# settings.py

EMAIL_BACKEND = 'hueymail.backends.EmailBackend'

Last, choose which email backend Huey should dispatch to via the HUEY_EMAIL_BACKEND setting:

# settings.py

HUEY_EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"

How it works

What happens when you send an email? Basically this:

  • Django creates a new instance of hueymail.backends.EmailBackend, and calls its send_messages() method with the email messages it wants to send.

  • The send_messages() method of the hueymail.backends.EmailBackend instance dispatches a Huey task called dispatch_messages(), which is responsible for sending those messages.

  • The dispatch_messages() task creates an instance of HUEY_EMAIL_BACKEND and calls its send_messages() method with the original email messages.

License

Copyright (c) 2022 Christopher McDonald

Distributed under the terms of the MIT license.

Metadata

Release files for django-huey-email-backend 0.1.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 django-huey-email-backend 0.1.1
File Size Uploaded Provenance
django-huey-email-backend-0.1.1.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-huey-email-backend 0.1.1
File Interpreter ABI Platform
django_huey_email_backend-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / django-huey-email-backend-0.1.1.tar.gz

Download URL django-huey-email-backend-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9bb07e05d9526132247083b3ec6b778533181f80cc3be5d1386b741b700c4f3f
BLAKE2b-256 checksum
How to use checksums
65eb1846dee5621a45ff09134e5e7e2c24c3d11c76e8ac1b7841dfd18322d80c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.13

Release files / django_huey_email_backend-0.1.1-py3-none-any.whl

Download URL django_huey_email_backend-0.1.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e40317a6ac0fdfb3e42bbecaaf37c6c1e6c002cbd91e9912ee64119cc9b778f
BLAKE2b-256 checksum
How to use checksums
f3a18e921ececdfa2405f5e89b9128cadd80b18bdfa390cdb37dd2a53a86a8aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.13

Security for django-huey-email-backend 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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