Commit 2d0e5c57 authored by lixiaofang's avatar lixiaofang

ad

parent 0fd4ca80
...@@ -346,7 +346,7 @@ def send_email(stat_data): ...@@ -346,7 +346,7 @@ def send_email(stat_data):
msg = MIMEText(stat_data, 'plain', 'utf-8') msg = MIMEText(stat_data, 'plain', 'utf-8')
msg['From'] = formataddr(["李小芳", my_sender]) msg['From'] = formataddr(["李小芳", my_sender])
msg["To"] = formataddr(["李小芳", my_user6]) msg["To"] = formataddr(["李小芳", my_user6])
msg['Subject'] = str(datetime.date.today()) + "like的自动点赞出问题了" msg['Subject'] = str(datetime.date.today()) + "like的测试环境的自动点赞出问题了"
server = smtplib.SMTP_SSL("smtp.exmail.qq.com", 465) server = smtplib.SMTP_SSL("smtp.exmail.qq.com", 465)
server.login(my_sender, my_pass) server.login(my_sender, my_pass)
server.sendmail(my_sender, [my_user6], msg.as_string()) server.sendmail(my_sender, [my_user6], msg.as_string())
......
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