feat: 添加接收人

This commit is contained in:
caoqianming 2025-03-25 16:58:29 +08:00
parent 5fb7bb4742
commit 21cb720d2e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def send_error_email(message, subject='hfnf_mqtt', ):
server = smtplib.SMTP(conf.EMAIL_HOST, conf.EMAIL_PORT)
server.starttls()
server.login(conf.EMAIL_HOST_USER, conf.EMAIL_HOST_PASSWORD)
server.sendmail(conf.EMAIL_HOST_USER, conf.EMAIL_HOST_USER, msg.as_string())
server.sendmail(conf.EMAIL_HOST_USER, [conf.EMAIL_HOST_USER, conf.EMAIL_HOST_USER2], msg.as_string())
server.quit()
def worker():