This commit is contained in:
parent
9395ca40f2
commit
779e7c933e
|
@ -255,6 +255,7 @@ class SMTP:
|
|||
if host:
|
||||
(code, msg) = self.connect(host, port)
|
||||
if code != 220:
|
||||
self.close()
|
||||
raise SMTPConnectError(code, msg)
|
||||
if local_hostname is not None:
|
||||
self.local_hostname = local_hostname
|
||||
|
|
Loading…
Reference in New Issue