Skip to content

theobouwman/mailer-jinja2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailer with Jinja2 templating support support

PyPI version

from mailer_jinja2.mail import Mail
from smtplib import SMTP


from_address = '[email protected]'
password = 'test1234'

to_address = '[email protected]

server = SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.login(from_address, password)

mail = Mail(from_address=from_address,
            to_address=to_address,
            subject='Test mail',
            template='test.html',
            server=server,
            fname='theo',
            sname='erik'
            )

mail.send_message()

About

A Python mailer with Jinja2 templating support

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages