Need help with django_mail_admin?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

131 Stars 31 Forks MIT License 102 Commits 5 Opened issues


The one and only django app to receive & send mail with templates and multiple configurations.

Services available


Need anything else?

Contributors list


Django Mail Admin

.. image:: :target:

.. image:: :target:

.. image:: :target:

The one and only django app to receive & send mail with templates and multiple configurations.


.. image:: .. image::


  • Everything django-mailbox has
  • Everything django-post-office has
  • Everything django-db-email-backend has
  • Database configurations - activate an outbox to send from, activate a mailbox to receive from
  • Templates
  • Translatable
  • Mailings - using send_many() or 'cc' and 'bcc' or even recipients - all of those accept comma-separated lists of emails


  • django >= 1.9 
  • django-jsonfield 


The full documentation is at


Q: What versions of Django/Python are supported? A: Take a look at

Install django mail admin::

pip install django_mail_admin

Add it to your


.. code-block:: python

  • Run


    python migrate djangomailadmin

  • Set

    as your
    in django's

    EMAILBACKEND = 'djangomail_admin.backends.CustomEmailBackend'

  • Set cron/Celery/RQ job to send/receive email, e.g. ::

    • * * * * (cd $PROJECT; python sendqueuedmail --processes=1 >> $PROJECT/cron_mail.log 2>&1)
    • * * * * (cd $PROJECT; python getnewmail >> $PROJECT/cronmailreceive.log 2>&1) 0 1 * * * (cd $PROJECT; python cleanupmail --days=30 >> $PROJECT/cronmail_cleanup.log 2>&1)

.. note::

Once you have entered a mailbox to receive emails, you can easily verify that you have properly configured your mailbox by either:

  • From the Django Admin, using the 'Get New Mail' action from the action dropdown on the Mailbox changelist
  • Or from a shell opened to your project's directory, using the

    management command by running::

    python getnewmail

If you have also configured the Outbox, you can verify that it is working, e.g. ::

    from django_mail_admin import mail, models

    '[email protected]',
    '[email protected]', # List of email addresses also accepted
    subject='My email',
    message='Hi there!',,
    html_message='Hi <strong>there</strong>!',

Custom Email Backends

By default,

uses custom Email Backends that looks up for Outbox models in database. If you want to use a different backend, you can do so by configuring
, though you will not be able to use Outboxes and will have to set EMAIL_HOST etc. in django's

For example if you want to use

    'BACKENDS': {
        'default': 'django_mail_admin.backends.CustomEmailBackend',
        'smtp': 'django.core.mail.backends.smtp.EmailBackend',
        'ses': 'django_ses.SESBackend',

You can then choose what backend you want to use when sending mail:

.. code-block:: python

# If you omit `backend_alias` argument, `default` will be used
    '[email protected]',
    ['[email protected]'],

If you want to send using ses backend

mail.send( '[email protected]', ['[email protected]'], subject='Hello', backend='ses', )

Capture outgoing emails into Outbox

If you want to store outgoing emails in the Outbox before they are submitted to the backend, set

as your
in django's

Emails submitted using

will be stored in the Outbox with the default backend selected for use when sending.

The emails will remain in the Outbox until

is run.

This can be used on development and test environments to capture emails so they are not sent automatically, and can be reviewed in Django Admin to ensure the contents are correct.

Optional requirements

  1. django_admin_row_actions
    for some useful actions in the admin interface
  2. requests
    for Gmail


Q: Why did you write this?

A: In order to get both email sending & receiving you'll have to install postoffice AND djangomailbox. Even if you do, you'll have to work on admin interface for it to look prettier, somehow link replies properly etc. So I've decided merging those two and clearing the mess in between them as well as adding some other useful features.

Q: Why did you remove support for Python 2?

A: Because f*ck python2. Really, it's been 9 (NINE!) years since it came out. Go ahead and check out

Q: Why is it named djangomailadmin, what does it have to do with admin ?

A: Well, the first version of this package (which was living just in a really large was used for easy mail management using standard Django admin interface.

Q: What languages are available?

A: Currently there's Russian and English languages available. Feel free to add yours:


source /bin/activate
python makemessages -l YOUR_LOCALE -i venv
python compilemessages -l YOUR_LOCALE

Q: Why did you delete support for multi-lingual templates?

A: Well, we have django-model-translations for that. You can easily fork this app and override EmailTemplate model (models/ accordingly. I think there's no need for such an overhead in a mail-related app.

Q: I don't want my outgoing emails to be queued for sending after saving them in the admin interface, what do i do?

A: Just override OutgoingEmailAdmin's save_model method.

Q: Can i get in touch with you? I want a new feature to be implemented/bug fixed!

A: Feel free to reach me out using issues and pull requests, I'll review them all and answer when I can.

Running Tests

Does the code actually work?


source /bin/activate
(myenv) $ pip install tox
(myenv) $ tox


Tools used in rendering this package:

  • Cookiecutter_
  • cookiecutter-djangopackage

.. _Cookiecutter: .. _


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.