easy use for send emails
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emailz-0.15.tar.gz
(3.5 kB
view details)
File details
Details for the file emailz-0.15.tar.gz
.
File metadata
- Download URL: emailz-0.15.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce45528cf51a7d1574de089af492aac27b5c35aad95c0b42d34a62d3112def08 |
|
MD5 | 3d75cb70d412156505c820d1f4291277 |
|
BLAKE2b-256 | 3df5fe38a59eadc6eed36d922707cfa891cb7bd4dccea7a5d185127a5b42f8d0 |