Skip to content

Commit

Permalink
Update smtplib.py
Browse files Browse the repository at this point in the history
Bug Fix: python#11998
  • Loading branch information
prrvchr committed Dec 3, 2020
1 parent 8d21aa2 commit b752b18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/smtplib.py
Expand Up @@ -318,6 +318,8 @@ def connect(self, host='localhost', port=0):
(code, msg) = self.getreply()
if self.debuglevel > 0:
print>>stderr, "connect:", msg
if code == 220:
self._host = host
return (code, msg)

def send(self, str):
Expand Down

0 comments on commit b752b18

Please sign in to comment.