标签:imp pre end mapping file The tab *** password
easy use for send emails
pip install emailz
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‘])
email.send(subject=‘Test‘, html=‘<h2>hi,it‘s a test</h2>‘,receivers=[‘han_zhichao@sina.cn‘])
email.send(subject=‘Test‘, template=‘tpl.html‘,receivers=[‘han_zhichao@sina.cn‘])
email.send(subject=‘Test‘, attachments=[‘tpl.html‘],receivers=[‘han_zhichao@sina.cn‘])
标签:imp pre end mapping file The tab *** password
原文地址:https://www.cnblogs.com/superhin/p/12737953.html