Python_发送邮件
2021-06-07 03:05
标签:aaa password smt xxxx chm use username 发送邮件 tac smtp = yamail.SMTP(host=host,user=username,password=password) Python_发送邮件 标签:aaa password smt xxxx chm use username 发送邮件 tac 原文地址:https://www.cnblogs.com/my-own-goddess/p/14855152.htmlimport 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.send(to=["aaaaaaa@qq.com"],
cc=["ssssssss@qq.com"],
subject="你好呀",
contents="哈哈哈哈",
attachments="qq.xls")
下一篇:Python_redis