程序异常时发送邮件提醒,且会自动进行重试

This commit is contained in:
2024-05-21 15:42:34 +08:00
parent 72b40f4387
commit a47a22b9a0
5 changed files with 96 additions and 2 deletions

11
config/email.py Normal file
View File

@@ -0,0 +1,11 @@
# 程序异常短信配置
ERROR_EMAIL_CONFIG = {
# SMTP服务器地址
'smtp_server': 'smtp.163.com',
# 发件人邮箱地址
'sender': 'EchoLiu618@163.com',
# 授权码--用于登录第三方邮件客户端的专用密码,不是邮箱密码
'authorization_code': 'OKPQLIIVLVGRZYVH',
# 收件人邮箱地址
'receivers': ['1515783401@qq.com']
}