def send_mail(to_list,sub,context):
me = mail_user
msg = MIMEText(context)
msg['Subject'] = sub
msg['From'] = me
msg['To'] = ";".join(to_list)
try:
s = smtplib.SMTP(mail_host)
s.login(mail_user,mail_pass)
s.sendmail(me, to_list, msg.as_string())
s.quit()
return True
except Exception, e:
return False
waterhole-ETH-watcher.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录