SUpport for unauthenticated SMTP #234

This commit is contained in:
Jokob-sk
2023-05-21 11:04:03 +10:00
parent 3756e1a327
commit 3831b5a50a

View File

@@ -2552,7 +2552,7 @@ class noti_struc:
def check_config(service):
if service == 'email':
if SMTP_PASS == '' or SMTP_SERVER == '' or SMTP_USER == '' or REPORT_FROM == '' or REPORT_TO == '':
if SMTP_SERVER == '' or REPORT_FROM == '' or REPORT_TO == '':
mylog('none', [' Error: Email service not set up correctly. Check your pialert.conf SMTP_*, REPORT_FROM and REPORT_TO variables.'])
return False
else: