yagmail发送邮件

import yagmail

yag = yagmail.SMTP(user="xxxxxxxxxx@163.com",password="xxxxxxx",host="smtp.163.com")

contents = ["群发邮件测试","看看list里到底都是邮件哪一部分","哈哈哈哈list第三"]

# yag.send('272932709@qq.com',"subject主题?",contents) #不带附件
# yag.send('272932709@qq.com',"subject主题+附件",contents,["E://青青子佩//图片//1.jpg"]) #带附件
yag.send(['272932709@qq.com','1248230816@qq.com'],"subject主题?",contents) #多个收件人

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-12-27
  • 2021-11-21
  • 2022-12-23
  • 2021-12-02
  • 2021-11-13
猜你喜欢
  • 2021-09-27
  • 2021-06-01
  • 2022-12-23
  • 2022-02-19
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案