==================
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-classy-mail-0.1.6.tar.gz | 5.2 kB | Without provenance | Details for django-classy-mail-0.1.6.tar.gz |
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 |
Security for django-classy-mail 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.