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 30eda38067 Use external smtp for testing, remove local smtpd. 2015-03-30 15:59:45 +03:00
docs release 0.4.5 2015-03-11 23:23:09 +03:00
emails Use external smtp for testing, remove local smtpd. 2015-03-30 15:59:45 +03:00
requirements lazy gettext support. Fixes #39 2015-03-23 14:56:32 +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 message-id tests 2015-03-06 14:49:34 +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 documentation minor updates 2015-03-09 01:18:21 +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 tox.ini update 2015-03-21 13:37:53 +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

|

See **documentation** on `python-emails.readthedocs.org <http://python-emails.readthedocs.org/>`_

|
|

.. 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