Marrja_MailPython package for sending templated HTML/plain text emails using marrow.mailer and Jinja2 | |
Download |
Marrja_Mail Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Will Charles
- Publisher web site:
- https://github.com/Dotnetwill/
Marrja_Mail Tags
Marrja_Mail Description
Marrja_Mail is a small Python 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 .htm from the 'email_templates' directory inside your package (this is customisable) and attach the ones that are found.Basic usage:#Once per applicatonfrom marrja_mail import MarrjaMaileremail_sender = MarrjaMailer(__name__, server='smtp.myserver.com', username='user@myserver.com', password='mypass', default_sender='my_sender@myserver.com')#Then to send emailemail_sender.send('user@send.to', 'template_file', 'subject line' , var_for=jinja_template)Product's homepage
Marrja_Mail Related Software