Skip to content
Modern python library for emails
Python HTML Other
Branch: master
Clone or download
Latest commit f776baf Jul 15, 2019



Modern python library for email.

Build message:

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

send message and get response from smtp server:

>>> r = message.send(to='', smtp={'host': '', 'timeout': 5})
>>> assert r.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


Flask extension: flask-emails
You can’t perform that action at this time.