A django email backend that saves the emails to database instead of sending them, and can view the emails in a web-browser
Project description
django-developmentEmailDashboard
A django email backend that saves the emails to database instead of sending them and can view the emails in a web-browser
:warning: disclaimer: do not use this in production or on any public server. this app hardly has any security protocols inplace since this is meant to be used in development and values ease of use over security. for example there is no password required to view a users inbox or to create a new one or for anything else.
Installation
-
prerequisites
- must have static files configured
-
run
pip install django-developmentEmailDashboard
-
Add 'developmentEmailDashboard' to your INSTALLED_APPS setting.
-
Add urls (only add the urls file that you plan on using)
from django.conf import settings
...
if settings.DEBUG: urlpatterns.append(path('emails/', include('developmentEmailDashboard.urls')))
-
set the email backend in settings.py
if DEBUG: EMAIL_BACKEND = 'developmentEmailDashboard.emailbackend.developmentEmailBackend'
-
Run the command
manage.py migrate
.
now every time you send an email it will show up on your website at http://localhost:8000/emails/
there is no validation on the emails that get created in the dashboard. for example you can create a inbox
test
or@@@
and it will work this is done for convenience if users want this functionality to be changed that can be done
still left to do
- amazing documentation
- 100% testing coverage
- notify user when a new email is received
- fix icons
- render emails as they will be displayed in a email application not just html
- option to show raw email with headers
- add email attachments
- allow browser to send html emails not just view emails with html sent by websites
Any contribution is welcome just make a pull request, and I will try to add your feature in the next version as soon as possible.
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
Hashes for django-developmentEmailDashboard-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c6a4e4dfda7d551f539367fb3f908c81c83b7650cfbd59b94fb64e9c694b6de |
|
MD5 | f9d7e010d0ed4a8a70d787250edd669d |
|
BLAKE2b-256 | 377765fa44eb33b676ac5d3e9a1325e9ba4573307f1c1c2724812a67670e209e |
Hashes for django_developmentEmailDashboard-1.0.0-py3.10.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61d6ad0410f18b323b86377109bd3019e6675404bc29782e4978ee80eefbc3b |
|
MD5 | 113edffc959805c11814e7a276ccaa94 |
|
BLAKE2b-256 | fd264a32b9b1c593631a5596a0bb88a8630841e507ad53b25ce125bed9f06107 |