Just sends email. Simple, easy, multiformat.
Project description
=============
Django-Ogmios
=============
.. image:: https://travis-ci.org/fusionbox/django-ogmios.svg?branch=master
:target: https://travis-ci.org/fusionbox/django-ogmios
:alt Build Status
Just sends emails. Simple, easy, multiformat.
Quickstart
==========
``yourproject/templates/mail/template.html``::
from: admin@example.org
to: Jane Doe <jane.doe@example.net>, {% for u in users %}{{ user.email }}, {% endfor %}
cc: John Doe <john.doe@example.org>, {{ copy_user.get_full_name }} <{{ copy_user.email }}>
bcc: anonymous@example.org, secret@example.com
subject: The whole email is a template
content-type: markdown
headers:
Reply-To: Jaqueline <jaqueline@example.net>
Organization: Example.org, Inc.
attachements:
- /absolute/path/file.odt
- relative/path/file.ods
- {{ file.path }}
- ['awesomereport.odt', 'mydocuments/crappy_report.odt', 'application/vnd.oasis.opendocument.text-template']
---
{% load special_filter %}
This is a list of special items:
{% for item in item_list %}
* {{ item|special }}
{% endfor %}
.. code:: python
import ogmios
ogmios.send_email('mail/template.html', {'item_list': ['Hello']})
This will render the content as markdown, and send the email with an HTML part and a Plaintext part.
Tips
====
Resend an email with different context:
.. code:: python
import functools
import ogmios
from myapp.models import User
send_registration = functools.partial(ogmios.send, 'mail/template.html')
send_registration({'user': User.objects.get(pk=1337)})
Changelog
=========
0.9.2 (2015-07-16)
------------------
- Fix ``setup.py`` dependencies. [Alex Bliskovsky]
- Fix tests. [Alex Bliskovsky]
- Fix compatibility with django's cached loader. [Alex Bliskovsky]
- Fix context processing. [Alex Bliskovsky]
0.9.1 (2015-06-22)
------------------
- Fix 'From' field always being default
0.9.0 (2015-06-18)
------------------
- Initial version
Django-Ogmios
=============
.. image:: https://travis-ci.org/fusionbox/django-ogmios.svg?branch=master
:target: https://travis-ci.org/fusionbox/django-ogmios
:alt Build Status
Just sends emails. Simple, easy, multiformat.
Quickstart
==========
``yourproject/templates/mail/template.html``::
from: admin@example.org
to: Jane Doe <jane.doe@example.net>, {% for u in users %}{{ user.email }}, {% endfor %}
cc: John Doe <john.doe@example.org>, {{ copy_user.get_full_name }} <{{ copy_user.email }}>
bcc: anonymous@example.org, secret@example.com
subject: The whole email is a template
content-type: markdown
headers:
Reply-To: Jaqueline <jaqueline@example.net>
Organization: Example.org, Inc.
attachements:
- /absolute/path/file.odt
- relative/path/file.ods
- {{ file.path }}
- ['awesomereport.odt', 'mydocuments/crappy_report.odt', 'application/vnd.oasis.opendocument.text-template']
---
{% load special_filter %}
This is a list of special items:
{% for item in item_list %}
* {{ item|special }}
{% endfor %}
.. code:: python
import ogmios
ogmios.send_email('mail/template.html', {'item_list': ['Hello']})
This will render the content as markdown, and send the email with an HTML part and a Plaintext part.
Tips
====
Resend an email with different context:
.. code:: python
import functools
import ogmios
from myapp.models import User
send_registration = functools.partial(ogmios.send, 'mail/template.html')
send_registration({'user': User.objects.get(pk=1337)})
Changelog
=========
0.9.2 (2015-07-16)
------------------
- Fix ``setup.py`` dependencies. [Alex Bliskovsky]
- Fix tests. [Alex Bliskovsky]
- Fix compatibility with django's cached loader. [Alex Bliskovsky]
- Fix context processing. [Alex Bliskovsky]
0.9.1 (2015-06-22)
------------------
- Fix 'From' field always being default
0.9.0 (2015-06-18)
------------------
- Initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-ogmios-0.9.2.tar.gz
(4.6 kB
view details)
File details
Details for the file django-ogmios-0.9.2.tar.gz
.
File metadata
- Download URL: django-ogmios-0.9.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8af204930c69a7359a4ba838e957fc85cec8fcd56d49dd475a54614aa627508 |
|
MD5 | c38dd958021af9a848100977cf7ae4fd |
|
BLAKE2b-256 | 6279f7d1af64171d681c5355a30b06da6bea2c3924c289bffebd450e1d6fdcc0 |