Skip to main content

A simple application to store a summary of system e-mails.

Project description

Django Email Manager

![Continuous Integration Status](

A simple application to manage emails sent by a Django application.

# Installation

pip install django-email-manager


# Download zip file
# Extract it
# Execute in the extracted directory: python install

#### Upgrade

pip install django-email-manager --upgrade --no-deps

# Motivation

* <>

* Problem: Bad control of what and how many e-mails have being sent to users.
* Solution: A simple table that log a summary of each e-mail had been sent.
A daily routine avoid this table grows uncontrolled and use the data to generate statistics.

* Problem: Important e-mails are deleted from the database when a user change his e-mail.
* Solution: A simple table that store all e-mails independently.

* Usually, good systems do not send attachments by e-mail because this a open door to attacks.

# Configuration



# This attribute activates a listener to store all e-mails independently of auth_user database.

# If you want to use celery for sending e-mails, you can customize the task name, example:
EMAIL_MANAGER_USING_CELERY = True # default = False
EMAIL_MANAGER_TASK = 'email-manager-task' # default = None


from django.contrib import admin

urlpatterns = patterns('',
url(r'^admin/', include(,
(r'^email-manager/', include('email_manager.urls', namespace='email_manager', app_name='email_manager')),

* Templates:

{% url email_manager:define_email_preferences %}
{% if user.is_superuser %}
{% url email_manager:send_email_to_groups %}
{% url email_manager:send_email_to_users %}
{% url email_manager:update_statistics %}
{% endif %}

# Usage

* Manual Test:


* Send e-mails directly in source code:

from email_manager.feature_send_email import EmailSender
EmailSender().send_email(emails, subject, text_content, html_content, main_content)
EmailSender().send_email_to_users(users, additional_emails, subject, content, html_content, email_type)
EmailSender().send_email_to_groups(groups, additional_emails, subject, content, html_content, email_type)

* Manual updating statistics:

python update_email_statistics

# Change Log

## Version 0.2.1
* 2012/04/08 (yyyy/mm/dd)
* <>
* Fixing configuration of package

## Version 0.2.0
* 2012/02/11 (yyyy/mm/dd)
* <>
* Now emails can have types and users can define which types of e-mails they want to receive.

## Version 0.1.0
* 2012/02/05 (yyyy/mm/dd)
* <>
* Initial version


* Auto update statistics
* Simple graphs and reports

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-email-manager, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size (18.7 kB) File type Source Python version None Upload date Hashes View

Supported by

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