Email backend for Django. Preview your email in browser instead of sending it.
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.
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.
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_naomi-0.8-py2.py3-none-any.whl (6.2 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size django-naomi-0.8.tar.gz (4.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_naomi-0.8-py2.py3-none-any.whl