Skip to content

Commit 699384f

Browse files
blurb-it[bot]nmartensen
authored andcommitted
📜🤖 Added by blurb_it.
1 parent 7e35ead commit 699384f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
In smtplib.SMTP, set ._host in .connect() and not immediately during instantiation. This allows .starttls() to work if the instance was created without arguments and host and port were only provided via an explicit .connect() call. If will also set ._host to the correct host value if the host and port were specified using the 'host:port' notation, which according to the documentation is supported by .connect().

0 commit comments

Comments
 (0)