Skip to main content

Email backend for Django. Preview your email in browser instead of sending it.

Project description

django-naomi
===========

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. This library is inspired from [Letter Opener][letter-opener].

Django Setup
------------

First, install django-naomi by using pip. You can add `django-naomi` to your requirements file or run this command.

```bash
pip install django-naomi
```

Then, add `naomi` to your `INSTALLED_APPS` on your django settings file.

```python
INSTALLED_APPS += 'naomi'
```

Lastly, change the Django email backend and set the temporary directory.

```python
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.

[letter-opener]: https://github.com/ryanb/letter_opener

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

django-naomi-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

django_naomi-0.1.1-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-naomi-0.1.1.tar.gz.

File metadata

  • Download URL: django-naomi-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-naomi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f258832e8a0543aa129842b16db49930c612ffb93ee74d92644112b97e5849f7
MD5 b91b2d3cca0742e57da46c39192055aa
BLAKE2b-256 ffab24d4cb97edf0ea3cde5b3c815430ef2a6d85b83603997c891a029e37a0da

See more details on using hashes here.

File details

Details for the file django_naomi-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_naomi-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 994452aaff7e57a3ca26fa5f8e668236f3783a773db3b72ada49a6edde5a65cd
MD5 c3300c853105557c38b438daac1c581e
BLAKE2b-256 b3de9d7d36f2031338b1ddffb20f04f7056c7a008aba3cc6b9013dc021cfb6c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page