老赵分享给所有Python爱好者的包包
Project description
包包简介
虽然我一度坚守着 Python2,但如今我也离她而去了。
所以,我推荐大家和我一样将 Python3 作为学习和使用 Python 的起点,本包包也仅发布了 Python3 的版本。
可能您会觉得这个包包里面的东西五花八门,但我真心希望其中的某些代码对您有用。
安装升级
$ pip install --user -U zhao
如何使用
用 zhao.xin_email.Mailman 发送带附件的纯文本邮件
from zhao.xin_email import Mailman
mailman = Mailman(host=YOUR_SMTP_HOST,
user=YOUR_SMTP_USER,
password=YOUR_SMTP_PASS)
if mailman.sendmail(sender='youname@example.com',
receivers=['tom@gmail.com', 'jerry@hotmail.com'],
subject='Hello, World!',
content='你好,世界!',
cc=['superman@sina.com'],
bcc=['boos@haven.com'],
files=[__file__]):
print('邮件发送成功')
else:
print('邮件发送失败')
更多用途和秘密,有待您的探索 …
更新历史
v0.0.68
时间: 2018-03-28
更新: 为 zhao.xin_email.Mailman.sendmail() 添加 cc, bcc, 发送附件等功能
v0.0.62
时间: 2018-03-27
更新: 添加 zhao.xin_email 模块
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
zhao-0.0.68-py3-none-any.whl
(81.0 kB
view hashes)