Email backend for Django. Preview your email in browser instead of sending it.
Project description
Django-naomi is a email backend for Django that let you preview email from your web browser instead of sending it using SMTP server. This is perfect for development environment that lack of SMTP server or you want to debug the email message. Attachment will be shown as link. This library is inspired from Letter Opener.
Django Setup
First, install django-naomi by using pip. You can add django-naomi to your requirements file or run this command.
pip install django-naomi
Then, add naomi to your INSTALLED_APPS on your django settings file.
INSTALLED_APPS += ('naomi',)
Lastly, change the Django email backend and set the temporary directory.
EMAIL_BACKEND = "naomi.mail.backends.naomi.NaomiBackend" EMAIL_FILE_PATH = "/home/test/tmp"
Please make sure that the EMAIL_FILE_PATH directory is writeable. That’s all you need to do. Now, every time you send email it will shown on your web browser.
Development and Feedback
Questions or problems? Please use the issue tracker. If you would like to contribute to this project, fork this repository and send me a pull request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-naomi-0.8.tar.gz
.
File metadata
- Download URL: django-naomi-0.8.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76da7bf3fd139129557348a440811678616a89e2fbcd3c0cebfc69094e6324db |
|
MD5 | 7bfdcb92e167964b6102e01624e1514d |
|
BLAKE2b-256 | d1a44e824a6171687aea4c8d71515a907521b32bee50401ee20dddfd5b362175 |
File details
Details for the file django_naomi-0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: django_naomi-0.8-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145b7bd54443a7062cc2b48c5572c526641c01233f697a7e8be96e1c11a082da |
|
MD5 | 826ab3fa5fc2cfbbf4b64ee63efa5a2a |
|
BLAKE2b-256 | b9467b1696f2ad75551ce0e31622b2881c933f8ef9be59300f57b2b7b7702246 |