标签: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")
标签:aaa password smt xxxx chm use username 发送邮件 tac
原文地址:https://www.cnblogs.com/my-own-goddess/p/14855152.html