All Projects → artemrizhov → Django Mail Templated

artemrizhov / Django Mail Templated

Licence: mit
Send emails using Django template system

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Mail Templated

Postmark.js
Official Node.js library for the Postmark API
Stars: ✭ 177 (+21.23%)
Mutual labels:  email, mail, templates
Django mail admin
The one and only django app to receive & send mail with templates and multiple configurations.
Stars: ✭ 140 (-4.11%)
Mutual labels:  django, email, mail
laravel-mjml
Laravel MJML offers support for rendering MJML syntax into in-line HTML that can be sent within mails.
Stars: ✭ 26 (-82.19%)
Mutual labels:  mail, email, templates
Python Sparkpost
SparkPost client library for Python
Stars: ✭ 87 (-40.41%)
Mutual labels:  django, email
Mail4delphi
Mail4Delphi uses the Indy component to send the email.
Stars: ✭ 60 (-58.9%)
Mutual labels:  email, mail
Django Anymail
Django email backends and webhooks for Amazon SES, Mailgun, Mailjet, Postmark, SendGrid, Sendinblue, SparkPost and more
Stars: ✭ 1,109 (+659.59%)
Mutual labels:  django, email
Sendria
Sendria (formerly MailTrap) is a SMTP server designed to run in your dev/test environment, that is designed to catch any email you or your application is sending, and display it in a web interface instead of sending to real world.
Stars: ✭ 30 (-79.45%)
Mutual labels:  email, mail
Yii2 Swiftmailer
Yii 2 swiftmailer extension.
Stars: ✭ 109 (-25.34%)
Mutual labels:  email, mail
Mailmergelib
MailMergeLib is a mail message client library which provides comfortable mail merge capabilities for text, inline images and attachments, as well as good throughput and fault tolerance for sending mail messages.
Stars: ✭ 97 (-33.56%)
Mutual labels:  email, mail
Action Send Mail
⚙️ A GitHub Action to send an email to multiple recipients
Stars: ✭ 111 (-23.97%)
Mutual labels:  email, mail
Mailinabox
Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
Stars: ✭ 10,649 (+7193.84%)
Mutual labels:  email, mail
Mailer
A lightweight PHP SMTP mail sender
Stars: ✭ 53 (-63.7%)
Mutual labels:  email, mail
Imapcopy
Recursively copy all e-mail messages and folders from one IMAP account to another.
Stars: ✭ 52 (-64.38%)
Mutual labels:  email, mail
Django Amazon Ses
A Django email backend that uses Boto3 to interact with Amazon Simple Email Service (SES).
Stars: ✭ 77 (-47.26%)
Mutual labels:  django, email
Postfwd Anti Geoip Spam Plugin
Postfwd plugin for blocking international spam botnets based on geographical location of IP addresses used to login to postfix via sasl.
Stars: ✭ 40 (-72.6%)
Mutual labels:  email, mail
Django Notifs
Modular Notifications (InApp, Email, SMS, CustomBackend etc) for Django
Stars: ✭ 105 (-28.08%)
Mutual labels:  django, email
Fuzzymail
📨 Email template generator. Making emails fun again.
Stars: ✭ 114 (-21.92%)
Mutual labels:  email, templates
Postmark Php
The official PHP library for Postmark.
Stars: ✭ 117 (-19.86%)
Mutual labels:  email, mail
Ismailfine
A simple (but correct) library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation
Stars: ✭ 9 (-93.84%)
Mutual labels:  email, mail
Bojler
Bojler is an email framework
Stars: ✭ 885 (+506.16%)
Mutual labels:  email, templates

Django Mail Templated

Send emails using Django template system

.. image:: https://readthedocs.org/projects/django-mail-templated/badge/?version=latest :target: http://django-mail-templated.readthedocs.org/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://badge.fury.io/py/django-mail-templated.svg :target: https://badge.fury.io/py/django-mail-templated :alt: PyPI Package

.. image:: https://circleci.com/gh/artemrizhov/django-mail-templated/tree/master.svg?style=shield :target: https://circleci.com/gh/artemrizhov/django-mail-templated/tree/master :alt: CircleCI Status

This is a tiny wrapper around the standard EmailMessage class and send_mail() function that provides an easy way to create email messages using the Django template system <https://docs.djangoproject.com/es/1.9/topics/templates/>_. Just pass template_name and context as the first parameters then use as normal.

Features

  • Built with OOP, KISS and flexibility in mind. Really small and simple, but yet full-featured (I hope).

  • Extends and mimics the built-in Django's EmailMessage and send_mail(). Compatible as much as possible.

  • Fully supports Django template system including template inheritance (thanks to BradWhittington for the note about the problem).

  • Supports any possible template engines and loaders.

  • Supports serialisation (thanks to arjandepooter).

  • Fully covered with tests.

  • Tested with Django 1.4-1.10.

  • Compatible with Python 2 and Python 3.

Documentation

http://django-mail-templated.readthedocs.org

Quick start

Run:

.. code-block:: console

pip install django-mail-templated

And register the app in your settings file:

.. code-block:: python

INSTALLED_APPS = (
    ...
    'mail_templated'
)

Create template:

.. code-block:: html+django

{% extends "mail_templated/base.tpl" %}

{% block subject %}
Hello {{ user.name }}
{% endblock %}

{% block body %}
{{ user.name }}, this is a plain text message.
{% endblock %}

{% block html %}
{{ user.name }}, this is an <strong>html</strong> message.
{% endblock %}

Send message:

.. code-block:: python

from mail_templated import send_mail
send_mail('email/hello.tpl', {'user': user}, from_email, [user.email])

Advanced usage:

.. code-block:: python

from mail_templated import EmailMessage

message = EmailMessage('email/hello.tpl', {'user': user}, from_email,
                       to=[user.email])
# TODO: Add more useful commands here.
message.send()

More useful info and examples at http://django-mail-templated.readthedocs.org

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].