renyupeng 3 年之前
父節點
當前提交
9f8b6f9990
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Apietl/task/send_material_report_weekly.py

+ 3 - 2
Apietl/task/send_material_report_weekly.py

@@ -59,7 +59,8 @@ group by t1.signature; """.format(stat_date=self.stat_date)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
         my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
         my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
-        recipients = ['wanglei@c-top.com.cn','niuxiaoyu@c-top.com.cn','dukexuan@c-top.com.cn','yangyan@c-top.com.cn']  # 收件人邮箱账号
+        recipients = ['wanglei@c-top.com.cn', 'niuxiaoyu@c-top.com.cn', 'dukexuan@c-top.com.cn', 'yangyan@c-top.com.cn',
+                      'zhangnannan@c-top.com.cn']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()
         # [发件人的邮箱昵称、发件人邮箱账号], 昵称随便
@@ -80,7 +81,7 @@ group by t1.signature; """.format(stat_date=self.stat_date)
             server.sendmail(my_sender, recipients, msg.as_string())
             print("发送成功")
         except Exception as e:
-            print("发送失败",e)
+            print("发送失败", e)
 
 
 if __name__ == '__main__':