Skip to content

Repository files navigation

python-emails

Modern python library for email.

Build message:

>>>importemails>>>message=emails.html(html="<p>Hi!<br>Here is your receipt...",
subject="Your receipt No. 567098123",
mail_from=('Some Store', 'store@somestore.com'))
>>>message.attach(data=open('bill.pdf', 'rb'), filename='bill.pdf')

send message and get response from smtp server:

>>>r=message.send(to='s@lavr.me', smtp={'host': 'aspmx.l.google.com', 'timeout': 5})
>>>assertr.status_code==250

and more:

  • DKIM signature
  • Render body from template
  • Flask extension and Django integration
  • Message body transformation methods
  • Load message from url or from file

Documentation: python-emails.readthedocs.org

Flask extension: flask-emails



https://travis-ci.org/lavr/python-emails.png?branch=masterhttp://allmychanges.com/p/python/emails/badge/https://coveralls.io/repos/lavr/python-emails/badge.svg?branch=master

About

Modern python library for emails

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages