diff --git a/auto_email/error_email.py b/auto_email/error_email.py index 3903f1e..9a6a5b1 100644 --- a/auto_email/error_email.py +++ b/auto_email/error_email.py @@ -11,7 +11,7 @@ def send_an_error_email(program_name, error_name, error_detail): @program_name: 运行的程序名 @error_name: 错误名 @error_detail: 错误的详细信息 - @description: 程序出错是发送邮件提醒 + @description: 程序出错时发送邮件提醒 """ # SMTP 服务器配置 diff --git a/config/email.py b/config/email.py index 8f9e1ea..ec7e39c 100644 --- a/config/email.py +++ b/config/email.py @@ -2,7 +2,7 @@ ERROR_EMAIL_CONFIG = { # SMTP服务器地址 'smtp_server': 'smtp.163.com', - # 发件人邮箱地址 + # 发件人邮箱地址,请确保开启了SMTP邮件服务! 'sender': 'EchoLiu618@163.com', # 授权码--用于登录第三方邮件客户端的专用密码,不是邮箱密码 'authorization_code': 'OKPQLIIVLVGRZYVH',