A quick and dirty way to save emails on the database and view them on the admin interface. Handy if you don't have a working email setup during development.
Pull request Compare This branch is 3 commits behind arthur-debert:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Django Email Preview

This is a small app to aid in the development, if you do not have a working email setup.

Using a custom EmailBackend, emails are persisted to the database, where they can be viewed on the admin interface. The admin change_form will render the email as HTML.


Quick and dirty how to:

  • Add 'emailreader' to your INSTALLED_APPS.
  • Change the email backend to point to 'emailreder.dbbackend.EmailBackend'
  • Run syncdb to crete the email table.
  • Symlink 'emailreader/media/emailreader' to your [MEDIA_ROOT]/emailreader/

And you are ready to go.