Skip to content

psihonavt/mailthon

 
 

Repository files navigation

Mailthon

Useful links: Documentation | Issue Tracker | PyPI Page

Mailthon is an 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 highly 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

Platforms

Linux image
Windows image

Packages

No packages published

Languages

  • Python 100.0%