)
# 邮件的主题
msg['Subject'] = Header(subject, 'utf-8').encode()
5.设置需要发送邮件的格式和文本
# 传入需要的文本信息,文本格式或者html格式的...receiver@gmail.com"]
# 邮件的主题
self.subject = "Hello 我要开始发送邮件啦"
# 文本信息...'utf-8').encode()
# 传入需要的文本信息,文本格式或者html格式的,设定格式:普通文本,或者html
msg.attach(MIMEText('{}'...'utf-8').encode()
# 传入需要的文本信息,文本格式或者html格式的,设定格式:普通文本,或者html
msg.attach(MIMEText('{}'...'utf-8').encode()
# 传入需要的文本信息,文本格式或者html格式的,设定格式:普通文本,或者html
msg.attach(MIMEText('请按照自己的文件下载