emailz-0.15
توضیحات
easy use for send emails
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | emailz-0.15 |
| نام | emailz |
| نسخه کتابخانه | 0.15 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Han Zhichao |
| ایمیل نویسنده | superhin@126.com |
| آدرس صفحه اصلی | https://github.com/hanzhichao/emailz |
| آدرس اینترنتی | https://pypi.org/project/emailz/ |
| مجوز | MIT license |
# emailz
easy use for send emails
## Install
```
pip install emailz
```
## Simple Use
```
from emailz import email
email.config(user='ivan-me@163.com',password='***')
email.send(subject='Test', body='hi,\n,it's a test',receivers=['han_zhichao@sina.cn'])
```
## Use HTML
```
email.send(subject='Test', html='<h2>hi,it's a test</h2>',receivers=['han_zhichao@sina.cn'])
```
## Use Template file
```
email.send(subject='Test', template='tpl.html',receivers=['han_zhichao@sina.cn'])
```
## With attachments
```
email.send(subject='Test', attachments=['tpl.html'],receivers=['han_zhichao@sina.cn'])
```
## ToDo
- Smtp Server mapping
- @email decorators
- trigger, crontab or more features
- theme and templates to choose
نحوه نصب
نصب پکیج whl emailz-0.15:
pip install emailz-0.15.whl
نصب پکیج tar.gz emailz-0.15:
pip install emailz-0.15.tar.gz