Modern python library for emails (debian packaging)
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Sergey Lavrinenko db3b772510 release 0.5.3 2015-07-23 22:59:01 +03:00
docs SMTP auth example 2015-04-08 19:16:44 +03:00
emails release 0.5.3 2015-07-23 22:59:01 +03:00
requirements Test on pypy 2015-04-06 00:51:55 +03:00
scripts script updated 2015-03-07 02:05:41 +03:00
.coveragerc python-emails refactored and redefined 2015-02-25 01:42:24 +03:00
.gitignore Use external smtp for testing, remove local smtpd. 2015-03-30 15:59:45 +03:00
.travis.yml Test on pypy 2015-04-06 00:51:55 +03:00
AUTHORS.rst README update 2015-02-27 12:43:07 +03:00
LICENSE documentation minor updates 2015-03-09 01:18:21 +03:00
MANIFEST.in setup.py fix 2013-08-18 01:39:34 +04:00
Makefile Makefile clean update 2015-03-14 17:46:23 +03:00
README.rst README update 2015-04-01 23:17:08 +03:00
setup.cfg setup.cfg pytest section 2015-02-27 12:02:59 +03:00
setup.py fix setup.py: emails.django added to packages 2015-03-13 18:31:06 +03:00
tox.ini Test on pypy 2015-04-06 00:51:55 +03:00

README.rst

python-emails
~~~~~~~~~~~~~

Modern python library for email.

Build message:

.. code-block:: python

   >>> import emails
   >>> 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'), filename='bill.pdf')

send message and get response from smtp server:

.. code-block:: python

   >>> r = message.send(to='s@lavr.me', smtp={'host': 'aspmx.l.google.com', '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

|

Documentation: `python-emails.readthedocs.org <http://python-emails.readthedocs.org/>`_

Flask extension: `flask-emails <https://github.com/lavr/flask-emails>`_

|
|

.. image:: https://travis-ci.org/lavr/python-emails.png?branch=master
   :target: https://travis-ci.org/lavr/python-emails

.. image:: https://img.shields.io/pypi/v/emails.svg
   :target: https://pypi.python.org/pypi/emails

.. image:: http://allmychanges.com/p/python/emails/badge/
   :target: http://allmychanges.com/p/python/emails/?utm_source=badge

.. image:: https://coveralls.io/repos/lavr/python-emails/badge.svg?branch=master
   :target: https://coveralls.io/r/lavr/python-emails?branch=master