Fix config key typo

This commit is contained in:
Piotr F. Mieszkowski 2022-04-24 10:07:52 +02:00
parent b19a76e297
commit 52b31028c5
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ def authenticate_maybe(smtp):
if 'smtp' in cfg and 'enabled' in cfg['smtp'] and cfg['smtp']['enabled'] == 'true':
smtp.connect(cfg['smtp']['host'],cfg['smtp']['port'])
smtp.ehlo()
if cfg['smtp']['startls'] == 'true':
if 'starttls' in cfg['smtp'] and cfg['smtp']['starttls'] == 'true':
smtp.starttls()
smtp.ehlo()
smtp.login(cfg['smtp']['username'], cfg['smtp']['password'])