Commit ff9e895e authored by Julian Rother's avatar Julian Rother
Browse files

Fixed check if MAIL_SERVER is set

parent 77d2cbf0
......@@ -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'):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment