开箱即用的邮件发送包
Project description
simple-email
简易的发送邮件脚本,通过封装,可以发送带附件的邮件.
demo
import Simple_email
## 发送邮件
1.填写邮箱配置
host = 'xx.xx.xx.xx'
port = 110
user = ''
pass_ = ''
2.填写邮件配置
title = ''
body = ''
attachment = ['']
sender = ''
to = ['']
cc = []
3.发送邮件
se = SenEmail(host=host,port=port,user=user,pass_=pass_)
se.send_email(title=title, body=body, attachment=attachment, sender=sender, to=to, cc=cc)
## 接收邮件正文,附件,邮件头.
se_server = SenEmail(host=host,port=port,user=user,pass_=pass_)
class AB(GetEmail):
def run():
'重写run()方法'
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
simple_email-0.0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for simple_email-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeb8fe77769cd961c9ca5572aebfd0cccef3885a6ec7afac10def8e7f40e35d9 |
|
MD5 | 5c804ca080128cb7140f0e89da13b264 |
|
BLAKE2b-256 | 876832fdee20cab7f13bc5116b6b97a2b38c684286e1d35c1c095dbbe64262f4 |