Commit 68d005fd authored by 王志伟's avatar 王志伟

send_email

parent 0a9e61a0
......@@ -34,7 +34,7 @@ def mail():
# msg['Subject'] = str(datetime.date.today()) + "-esmm多目标模型训练指标统计"
server = smtplib.SMTP_SSL("smtp.exmail.qq.com", 465)
server.login(my_sender, my_pass)
server.sendmail(my_sender, [my_user1], m.as_string())
server.sendmail(my_sender, [my_user1,my_user2,my_user3], m.as_string())
server.quit()
except Exception:
ret=False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment