Commit 1ff2ee67d8b1e730964f2e57c0cf8707628c37ac

Authored by lixi
1 parent 89a4f7ce

更新邮件配置

Showing 1 changed file with 1 additions and 1 deletions
commons/SendEmail.py
@@ -55,7 +55,7 @@ def send_email(send_file,send_to=["lixi@diligrp.com"],cc_to=["lixi@diligrp.com"] @@ -55,7 +55,7 @@ def send_email(send_file,send_to=["lixi@diligrp.com"],cc_to=["lixi@diligrp.com"]
55 try: 55 try:
56 smtp = smtplib.SMTP_SSL('smtp.exmail.qq.com') # smtp服务器地址 使用SSL模式 56 smtp = smtplib.SMTP_SSL('smtp.exmail.qq.com') # smtp服务器地址 使用SSL模式
57 re=smtp.login('autotest@diligrp.com', 'MvkuGGCfMtAdbJvE') # 用户名和密码 57 re=smtp.login('autotest@diligrp.com', 'MvkuGGCfMtAdbJvE') # 用户名和密码
58 - smtp.sendmail("autotest@diligrp.com", send_to, msg.as_string()) 58 + smtp.sendmail("autotest@diligrp.com", send_to+cc_to, msg.as_string())
59 print(re) 59 print(re)
60 except Exception as e: 60 except Exception as e:
61 log.error(str(e)) 61 log.error(str(e))