eugene-eeo / mailthon

elegant email sending for Python

Home Page:http://mailthon.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailthon

Useful links: Documentation (outdated) | Issue Tracker | PyPI Page

Mailthon is an MIT licensed email library for Python that aims to be highly extensible and composable. Mailthon is unicode aware and supports internationalised headers and email addresses. Also it aims to be transport agnostic, meaning that SMTP can be swapped out for other transports:

>>> from mailthon import postman, email
>>> p = postman(host='smtp.gmail.com', auth=('username', 'password'))
>>> r = p.send(email(
        content=u'<p>Hello 世界</p>',
        subject='Hello world',
        sender='John <john@jon.com>',
        receivers=['doe@jon.com'],
    ))
>>> assert r.ok
https://ci.appveyor.com/api/projects/status/eadeytartlka64a1?svg=true

About

elegant email sending for Python

http://mailthon.readthedocs.org/en/latest/

License:MIT License


Languages

Language:Python 100.0%