Python_发送邮件

2021-06-07 03:05

阅读:380

标签:aaa   password   smt   xxxx   chm   use   username   发送邮件   tac   

import yamail
username = "xxxxxx@qq.com"
password = "xxxxxx"
host = "smtp.qq.com"
# host = "smtp.163.com" #163
# host = "smtp.126.com" #qq
# smtp.send(to="aaaaaa@qq.com")

smtp = yamail.SMTP(host=host,user=username,password=password)
smtp.send(to=["aaaaaaa@qq.com"],
cc=["ssssssss@qq.com"],
subject="你好呀",
contents="哈哈哈哈",
attachments="qq.xls")

Python_发送邮件

标签:aaa   password   smt   xxxx   chm   use   username   发送邮件   tac   

原文地址:https://www.cnblogs.com/my-own-goddess/p/14855152.html

上一篇:从Spring到SpringBoot浅谈

下一篇:Python_redis


评论


亲,登录后才可以留言!