Installation
You must have setuptools installed.
From PyPI:
pip install django_mailqueue_backend
Or download a package from the PyPI or the BitBucket page:
pip install <package>
Or unpack the package and:
python setup.py install.
Dependencies
Django >=1.4,<1.5,>=1.6 and its dependencies.
queue-front >= 0.7.2 located at: https://bitbucket.org/dwaiter/queue-front/ or https://pypi.python.org/pypi/queue-front. Note that queue-front also has dependencies. See this page for more details.
Integration
In your Django settings.py file insert the following in an appropriate place:
...
INSTALLED_APPS = [
...
"mailqueue_backend",
...
]
...
EMAIL_BACKEND = "mailqueue_backend.mail.smtp.QueuedEmailBackend"
...
That is it. You should run the following command by any regular means that you prefer (cron, celery, etc):
./manage.py process_mail_queue
Mail Storage
Mail is stored in a queue. The backend for the queue is specified by you in the queue-front app.
Compatibility
This module has been tested with the following: (Note that python 3.0 compatibility is dependent on the backend queue you choose to use with the queue-front dependency.)
python 2.7 django 1.4
python 2.7 django 1.6
python 2.7 django 1.7
python 3.2 django 1.6
python 3.2 django 1.7
python 3.3 django 1.6
python 3.3 django 1.7
python 3.4 django 1.6
python 3.4 django 1.7
Advanced
Packages Security
This module, when packaged, is signed with the following key:
Mario Rosa’s Key with id 0x8EBBFA6F (full fingerprint F261 96E4 8EF2 ED4A 26F8 58E9 04AA 48D1 8EBB FA6F) and his email is mario@dwaiter.com
You can find this key on servers like pgp.mit.edu.
Additional Settings
MAIL_QUEUE_NAME
Default: “MAIL_QUEUE”
Set the name of the queue.
MAIL_QUEUE_LOG_FILENAME
Default: “smtp.mail_queue.mail_queue_fail.log”
A log to this file will be made when a message is discarded.
MAIL_QUEUE_LOG_FILE_MAXBYTES
Default: 5242880 (Integer) aka 5MB
Maximum size of a log file.
MAIL_QUEUE_LOG_FILE_BACKUP
Default: 5 (Integer)
Number (n) of files in log rotation. A new backup is created once MAXBYTES is reached in the current log file up to n many log files. The oldest log file is deleted on rotation (i.e. n+1).
MAIL_QUEUE_EXPIRE
Default: 86400 (Integer) aka 1 day
The amount of time in seconds until a failed email is discarded from the queue.
Metadata
Release files for django-mailqueue-backend 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-mailqueue-backend-0.1.2.tar.gz | 7.0 kB | Without provenance | Details for django-mailqueue-backend-0.1.2.tar.gz |
Release files / django-mailqueue-backend-0.1.2.tar.gz
| Download URL | django-mailqueue-backend-0.1.2.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d058a8d7cae71aee8f1d7dbc7890c175adcd3da2275e77b7eb989e8259bf2a7
|
|
BLAKE2b-256 checksum How to use checksums |
29b6f75af2fbe0ca1341f1d8e90861253db09c6bdb022cbae28cd5706bf6770f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-mailqueue-backend 0.1.2
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.