Skip to main content

一个邮件操作工具类。

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)

Uploaded Source

Built Distributions

emaileer-0.0.1-py3.9.egg (6.8 kB view hashes)

Uploaded Source

emaileer-0.0.1-py2.py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page