emails-0.6
توضیحات
Modern python library for emails.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | emails-0.6 |
| نام | emails |
| نسخه کتابخانه | 0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sergey Lavrinenko |
| ایمیل نویسنده | s@lavr.me |
| آدرس صفحه اصلی | https://github.com/lavr/python-emails |
| آدرس اینترنتی | https://pypi.org/project/emails/ |
| مجوز | - |
python-emails
~~~~~~~~~~~~~
Modern python library for email.
Build message:
>>> 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:
>>> 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
Links
`````
* `documentation <http://python-emails.readthedocs.org/>`_
* `source code <http://github.com/lavr/python-emails>`_
نیازمندی
| مقدار | نام |
|---|---|
| - | cssutils |
| - | lxml |
| - | chardet |
| - | python-dateutil |
| - | requests |
| - | premailer |
نحوه نصب
نصب پکیج whl emails-0.6:
pip install emails-0.6.whl
نصب پکیج tar.gz emails-0.6:
pip install emails-0.6.tar.gz