摘要:
# 邮件正文内容——文本方式 :第三个参数:第一个为文本内容,第二个 plain 设置文本格式 , 第三个 utf-8 设置编码方式message = MIMEText('Python 邮件发送测试……','plain','utf-8')# 邮件正文——htm... 阅读全文
posted @ 2018-08-04 16:50
CryDongle
阅读(40)
评论(0)
推荐(0)
摘要:
from email.mime.multipart import MIMEMultipart# 由 MIMEText 方式转换为 MIMEMultipart 方式,以下内容为附件添加内容,其他保持一致message = MIMEMultipart()#邮件正文... 阅读全文
posted @ 2018-08-04 16:50
CryDongle
阅读(18)
评论(0)
推荐(0)
摘要:
sender = input('From:')password = input('Password:')receivers = input('To:') content = input('Content:')message = MIMEText(content... 阅读全文
posted @ 2018-08-04 16:49
CryDongle
阅读(19)
评论(0)
推荐(0)
摘要:
# python3import smtplibfrom email.mime.text import MIMETextfrom email.header import Header# 发送者sender = 'zhengxiaodong@trusfort.c... 阅读全文
posted @ 2018-08-04 16:48
CryDongle
阅读(30)
评论(0)
推荐(0)

浙公网安备 33010602011771号