Skip to content

Commit 8810ffb

Browse files
committed
Revised NEWS entry
1 parent 75f4265 commit 8810ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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().
1+
Fixed bug where :meth:SMTP.starttls could fail if :meth:SMTP.connect is called explicitly rather than implicitly.

0 commit comments

Comments
 (0)