Skip to content
Permalink
Browse files

Remove wrong argument

  • Loading branch information...
lukasjuhrich committed Feb 19, 2019
1 parent cf42e6b commit 2e03d87e2a39d79edd406c6db4d977f315abb7ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 sipa/mail.py
@@ -84,7 +84,7 @@ def send_mail(author: str, recipient: str, subject: str, message: str) -> bool:
smtp = smtplib.SMTP()
smtp.connect(host=mailserver_host,
port=mailserver_port)
smtp.sendmail(from_addr=sender, to_addrs=recipient, msg=mail.as_string(0))
smtp.sendmail(from_addr=sender, to_addrs=recipient, msg=mail.as_string())
smtp.close()
except IOError as e:
# smtp.connect failed to connect

0 comments on commit 2e03d87

Please sign in to comment.
You can’t perform that action at this time.