Skip to content

x0y-gt/postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postman

Library to send email in python

Example

mail = Message()
mail.to('')\
    .subject('bla bla')\
    .template('resources/templates/billing.html', {
        'order_id': 'asd',
        'name': 'NAME',
        'date': '2 de Marzo, 2019',
        'items': [{
            'name': 'Cafe Pacamara 1lb',
            'price': 50.00
        }],
        'total': 50
    })

postman = Postman(SmtpTransport(user={'':''}, password='', host="smtp.mailgun.org"))
postman.send(mail)

print('Emial sent')

About

Library to send email in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages