Skip to content

Django-related reusable app provides the ability to send multipart emails and store them in a database

License

Notifications You must be signed in to change notification settings

fogstream/django-fs-email-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

django-fs-email-helper is the Django-related reusable app provides the ability to send multipart emails and store them in a database.

The distinctive feature of this app is storing sent emails in database. It means that you have ability to check each sent email from admin interface.

Installation

  1. Install django-fs-email-helper using pip:

    $ pip install django-fs-email-helper
    
  2. Add 'email_helper' to your INSTALLED_APPS setting:

    INSTALLED_APPS = (
        ...
        'email_helper',
        ...
    )
    
  3. Run syncdb or migrate:

    $ ./manage.py syncdb
    
    or
    
    $ ./manage.py migrate
    

Usage

Just import send_email function and use it:

from email_helper import send_email

send_email('from_email@example.com', 'to_email@example.com', 'email_helper/email_template.html', {})

send_email('from_email@example.com', ['to_email_1@example.com', 'to_email_2@example.com'], 'email_helper/email_template.html', {})

Credits

Fogstream

About

Django-related reusable app provides the ability to send multipart emails and store them in a database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages