A Django reusable app providing the ability to send PGP/MIME signed multipart emails.
Project description
Created by Jan Dittberner
Introduction
django-gnupg-mails provides a class gnupg_mails.message.GnuPGMessage that extends Django’s django.core.mail.EmailMessage with the functionality to send PGP/MIME signed emails.
- Documentation: http://django-gnupg-mails.readthedocs.org/
- Source: https://github.com/jandd/django-gnupg-mails
Dependencies
- gnupg is required for signing the mails
Installation
The easiest way to install django-gnupg-mails is directly from PyPI using pip by running the command below:
$ pip install -U django-gnupg-mails
Otherwise you can download django-gnupg-mails and install it directly from source:
$ python setup.py install
Usage
Define settings.GNUPG_HOMEDIR to point to a GnuPG home directory containing a private key with signing capabilities.
Instead of using Django’s EmailMessage you can just use gnupg_mails.message.GnuPGMessage. The class is a drop-in replacement and can used in the same way as the original class as documented in The Django documentation.
Similar packages
You may want to have a look at django-email-extras by Stephen McDonald for other GnuPG related functionality. Stephen’s package allows sending PGP encrypted mail and provides a nice email test backend.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django_gnupg_mails-0.4.0-py2.py3-none-any.whl (12.3 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size django-gnupg-mails-0.4.0.tar.gz (10.2 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for django_gnupg_mails-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44cf2da13440f8fa4ef742da91ad8f2cb0f237bbcf602af3c4f17a1689f2cd52 |
|
MD5 | 8837999724fb50f977e44d84444de244 |
|
BLAKE2-256 | 51e05d39d53c3c3881dfd70945b7ad3e9d039c4bf9414a791bd6e76a0c6fdf97 |