一个邮件操作工具类。
Project description
使用手册
快速开始
import emaileer
# 定义一个QQ Mailer
mailer = emaileer.QQMailer("1727xxxx32@qq.com", "kafnedgxxxxsgjbhg", fromName="姓名")
# 发送文本邮件
mailer.sendText("测试标题", "hello", "7932xxx61@qq.com")
# 发送Html邮件
mailer.sendText("测试标题", "<h3>hello</h3>", "7932xxx61@qq.com")
# 发送Html模板邮件
mailer.sendText("测试标题", "demo.html", "7932xxx61@qq.com", k1='v1', k2='v2')
# 发送附件邮件
mailer.sendText("测试标题", "demo.html", "7932xxx61@qq.com", files="file1.txt,file2.txt")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emaileer-0.0.1.tar.gz
(5.5 kB
view hashes)
Built Distributions
emaileer-0.0.1-py3.9.egg
(6.8 kB
view hashes)
Close
Hashes for emaileer-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ea515dab1a9979dfe71a9e3b49075b28ae43f5a4c601ceda03c233789b7f1f3 |
|
MD5 | 1c0b8d96a5d5cc3eb04d85e97028e972 |
|
BLAKE2b-256 | 358817e92693bd5df098216e7bdc320ab49be8724eac158d20b221731477670b |