Skip to content
Snippets Groups Projects
Commit ff9e895e authored by Julian Rother's avatar Julian Rother
Browse files

Fixed check if MAIL_SERVER is set

parent 77d2cbf0
Branches
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ def send_message(msgtype, recipients, **kwargs):
try:
msg['Subject'] = render_template('mails/'+msgtype+'.subject', **kwargs)
msg.set_content(render_template('mails/'+msgtype+'.body', **kwargs))
if 'MAIL_SERVER' not in config:
if not config.get('MAIL_SERVER'):
return
s = smtplib.SMTP(config['MAIL_SERVER'])
if config.get('MAIL_ADDRESS_OVERWRITE'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment