Elegant email library
Project description
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 |
|
Windows |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mailthon-0.1.1.tar.gz
(9.5 kB
view details)
File details
Details for the file mailthon-0.1.1.tar.gz
.
File metadata
- Download URL: mailthon-0.1.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce552813dda0ed2f04139fe26e897bed511633ec792e9f46c73ebcfed0d6e024 |
|
MD5 | dfabd36cd20a95fca82e3e6706972a9a |
|
BLAKE2b-256 | a4724d75ad651bf2e0d5af88ca63febcdd86e7d107c1f3306cd332598c7caa6b |