This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Class-Based Email for Django built with Mixins

Project Description
django-classy-mail
==================

Class Based Email for Django, built on Mixins to support many common use cases

All e-mails are based on a BaseEmail class that builds the MultiPartEmail class
that django provides. This means that you can still use any backend you want.
I like [django-ses](https://github.com/hmarr/django-ses), but you may like
something else.

Get it from [pipi](https://pypi.python.org/pypi/django-classy-mail/)

The simplest usage of the class is to send a one-off e-mail like this:

```python
from classy_mail.generic import SimpleEmail

#create the email
email = SimpleEmail(subject=u'Welcome to mycoolwebsite',to_addr=u'user@example.com', text_content=u'Hello World', from_email=u'Friendly Admin <administrator@mycoolwebsite.io>'')
#Everything gets validated and templated when build_msg is called by send()
email.send()
#You can check things like send status on the object
print email.status
````


Some other mixins to play with:

### FileTemplateMixin
Applies templates stored in your project templates directories

### ModelTemplateMixin
Using the included TemplatedEmail model, you can store templates in the database instead

### SiteContextMixin
Adds the site to the context that will be used to render any template
Release History

Release History

This version
History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-classy-mail-0.1.6.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Dec 23, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting