Skip to main content
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

Metadata

Release files for django-classy-mail 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-classy-mail 0.1.6
File Size Uploaded
django-classy-mail-0.1.6.tar.gz 5.2 kB Details

Release files / django-classy-mail-0.1.6.tar.gz

Download URL django-classy-mail-0.1.6.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9feaa76f7b2072d0d6bb0ffd51d8782d45abbcdfa4b52776889b0fdce89103b9
BLAKE2b-256 checksum
How to use checksums
c6d226baeadf0f5a0f277c063479e8c638946a9ebf80c0546f6899bedca18e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page