Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Small wrapper for marrow.mailer to use Jinja2 templates and automatically send html and plain text emails.

Project description

===========
Marrja Mail
===========

Marrja mail is a small module that brings together Jinja2 and marrow.mailer to
easily send emails rendered from templates. You supply a template name with
no extension and it will try it with .txt and .html from the 'email_templates' directory inside your package
(this is customisable) and attach the ones that are found.

Basic usage:
::
#Once per applicaton
from marrja_mail import MarrjaMailer

email_sender = MarrjaMailer(__name__, server='smtp.myserver.com', username='user@myserver.com',
password='mypass', default_sender='my_sender@myserver.com')

#Then to send email
email_sender.send('user@send.to', 'template_file', 'subject line' , var_for=jinja_template)

TODO:
=====

*Add support for testing that dumps out the rendered template to a dir
*Expose more configuration options for marrow.mailer
*Write better docs

More info @ https://github.com/Dotnetwill/marrja_mail

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Marrja_Mail, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size Marrja_Mail-0.1.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page