Commit ac450bab authored by Gero Müller's avatar Gero Müller
Browse files

fix smtp config loading

parent 7de92c6f
......@@ -301,7 +301,7 @@ def send_mail(addr, subject="", content="", sender_addr=None, smtp_host=None,
if smtp_host is None:
smtp_host = config("mail", "smtp.host", "localhost")
if smtp_port is None:
smtp_host = config("mail", "smtp.port", 0)
smtp_port = config("mail", "smtp.port", 0)
if sender_addr is None:
sender_addr = config("mail", "sender_address", "noreply@example.org")
......
Markdown is supported
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