Skip to main content

Django mailing through admin

Project description


This project allows you to send emails and manage them in the admin panel. By default package uses celery to send emails.




Run migrations: `python migrate`

Available settings

POSTIE_TEMPLATE_CHOICES - Tuple of tuples. Where the first value is the value to use in code and second is verbose(translated).

POSTIE_TEMPLATE_CONTEXTS - dictionary with template choices as keys and dictionaries as values

For example:

    'mail_event': {
        'context_var1': _('Context variable 1 description'),
        'context_vae2': _('Context variable 2 user description'),

POSTIE_INSTANT_SEND - whether to send letters instantly or to use celery task. If False celery is required.

POSTIE_HTML_ADMIN_WIDGET - dictionary with default widget for HTML field in Template model in django admin interface

For example:

    'widget': 'TinyMCE',
    'widget_module': 'tinymce',
    'attrs': {'attrs': {'cols': 80, 'rows': 10}}

POSTIE_DEBUG_MODE - controls whether to raise exceptions on send_mail. By default equals DEBUG

Basic example to use:


from postie.shortcuts import send_mail

    recipients=['', ''],
        'var1': 'variable context',
        'var2': 'another value'
        'file_name': open('path-to-the-file')

Full documentation check here -

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-postie, version 0.8.3
Filename, size File type Python version Upload date Hashes
Filename, size django-postie-0.8.3.tar.gz (21.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page