diff --git a/EastMoneyPy/venv/main/eastmoney/SendEmail.py b/EastMoneyPy/venv/main/eastmoney/SendEmail.py index f358240..40c2828 100644 --- a/EastMoneyPy/venv/main/eastmoney/SendEmail.py +++ b/EastMoneyPy/venv/main/eastmoney/SendEmail.py @@ -10,9 +10,9 @@ def sendErr(): # 第三方 SMTP 服务 mail_host = "smtp.sina.com" # 设置服务器 - mail_user = "belloving@sina.com" # 用户名 - mail_pass = "da524db9e89e80b1" # 口令 - sender = 'belloving@sina.com' + mail_user = "belldev2018@sina.com" # 用户名 + mail_pass = "a1b1465326ddd10d" # 口令 + sender = 'belldev2018@sina.com' receivers = ['belloving@qq.com'] # 接收邮件,可设置为你的QQ邮箱或者其他邮箱 message = MIMEText(traceback.format_exc(), 'plain', 'utf-8') # traceback.format_exc()为报错日志 message['From'] = "{}".format(sender) @@ -34,9 +34,9 @@ def sendNofity(content): # 第三方 SMTP 服务 mail_host = "smtp.sina.com" # 设置服务器 - mail_user = "belloving@sina.com" # 用户名 - mail_pass = "da524db9e89e80b1" # 口令 - sender = 'belloving@sina.com' + mail_user = "belldev2018@sina.com" # 用户名 + mail_pass = "a1b1465326ddd10d" # 口令 + sender = 'belldev2018@sina.com' receivers = ['belloving@qq.com'] # 接收邮件,可设置为你的QQ邮箱或者其他邮箱 message = MIMEText(content, 'html', 'utf-8') # traceback.format_exc()为报错日志 message['From'] = "{}".format(sender) @@ -55,5 +55,5 @@ -# notify = Email() -# notify.send('标题头', '请检查执行结果') \ No newline at end of file +#notify = Email() +#notify.sendNofity('请检查执行结果')