Skip to content

Commit

Permalink
Pass smtp server to SMTP constructor to work around https://bugs.pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Jul 11, 2019
1 parent e053c9a commit 8f0b19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auslib/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ def send_email(relayhost, port, username, password, to_addr, from_addr, table, s
msg["from"] = from_addr

try:
conn = SMTP()
conn = SMTP(relayhost)
conn.connect(relayhost, port)
conn.ehlo()
if use_tls:
Expand Down

0 comments on commit 8f0b19a

Please sign in to comment.