This Django Basic Email enable you to create emails in easy way.
This CMS is know to work on Django 1.4+ with Python 2.6+ and 3.3+
Instalation
Get package or install by pip:
pip install django-basic-email
Configuration
Modify your settings.py. Add 'basic_email' to your INSTALLED_APPS like this:
INSTALLED_APPS = (
...
'basic_email',
)
Usage
Create template emails/email_example.html and send email:
from basic_email.send import send_email
send_email('example', 'joe@doe.com', 'Hello')
- Options:
template template name from scheme emails/email_<name>.html
email - receiver email
subject - subject email
variables - dict with variables to pass to template render
fail_silently - flag if error in sending email should raise (default False)
replace_variables - dict with variables to replace in template
reply_to - reply_to header
attachments - attachments list (file objects)
memory_attachments - attachments list (string objects)
Testing
Fork repository (if you don’t have write permission).
Create a branch.
Add feature or fix a bug.
Push code.
Create a Pull Request.
Automated tests
Require Tox>=1.8
Testing all platforms
tox
Testing one platforms
tox -e <platform>
Example:
tox -e py27-django-17
Testing interface
Create virtual environment:
# Preparing virtualenv paths (optional if your profile doesn't have it). export WORKON_HOME=~/Envs source /usr/bin/virtualenvwrapper_lazy.sh # or: source /usr/local/bin/virtualenvwrapper_lazy.sh # Start by creating a virtual environment using the helper scripts provided. Do not include the systems site-packages. mkvirtualenv django-basic-email --no-site-packages workon django-basic-email
Install django-basic-email in editable mode:
pip install -e .
Run example project:
cd example_project && ./manage.py migrate && ./manage.py runserver
Metadata
Release files for django-basic-email 0.0.2
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 | |
|---|---|---|---|---|
| django-basic-email-0.0.2.tar.gz | 6.5 kB | Without provenance | Details |
Release files / django-basic-email-0.0.2.tar.gz
| Download URL | django-basic-email-0.0.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bcc702108c0613463f95fe7899ea627ffb216ee28575a28c3e766f139254986
|
|
BLAKE2b-256 checksum How to use checksums |
b08acf911356ca7b7c849511cb90c103d11b1c834895c87ec0b6e4501908a3c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-basic-email 0.0.2
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.