Fix minor cron.py issues #64
|
@ -55,7 +55,7 @@ def authenticate_maybe(smtp):
|
||||||
if 'smtp' in cfg and 'enabled' in cfg['smtp'] and cfg['smtp']['enabled'] == 'true':
|
if 'smtp' in cfg and 'enabled' in cfg['smtp'] and cfg['smtp']['enabled'] == 'true':
|
||||||
smtp.connect(cfg['smtp']['host'],cfg['smtp']['port'])
|
smtp.connect(cfg['smtp']['host'],cfg['smtp']['port'])
|
||||||
smtp.ehlo()
|
smtp.ehlo()
|
||||||
if cfg['smtp']['startls'] == 'true':
|
if 'starttls' in cfg['smtp'] and cfg['smtp']['starttls'] == 'true':
|
||||||
smtp.starttls()
|
smtp.starttls()
|
||||||
smtp.ehlo()
|
smtp.ehlo()
|
||||||
smtp.login(cfg['smtp']['username'], cfg['smtp']['password'])
|
smtp.login(cfg['smtp']['username'], cfg['smtp']['password'])
|
||||||
|
|
Loading…
Reference in New Issue