1. QQ邮件群发软件工具哪个好_QQ邮箱群发机器_破解亲测有效!首页
  2. 邮件群发软件

Python简单实现邮件群发

Python简单实现邮件群发

        import smtplib          from email.mime.text import MIMEText          from email.utils import formataddr                      msg = MIMEText('xaaxaxaxafdjikgjhdjfg', 'plain', 'utf-8')          msg['From'] = formataddr(["张三",'zhangsan@126.com'])          msg['To'] = formataddr(["李四",'lisi@163.com'])          msg['Subject'] = "邮件主题"                      server = smtplib.SMTP("smtp.126.com", 25) #端口          server.login("zhangsan@126.com", "asdfadfsdfa")          server.sendmail('zhangsan@126.com', ['lisi@163.com',‘wangwu@163.com’], msg.as_string())          server.quit()

 

原创文章,作者:QQ邮件群发,如若转载,请注明出处:http://www.youjianqunfa8888.com/baike/2335.html

发表评论

登录后才能评论