]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-70039: smtplib: store the server name in ._host in .connect() (#115259)
authornmartensen <nis.martensen@web.de>
Wed, 8 Apr 2026 21:46:25 +0000 (23:46 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2026 21:46:25 +0000 (17:46 -0400)
commit442f83a5ea1b4d334befd231a79c40d6ff41a0bd
tree22279994214cf963ca77c9ce208dd927926ad51f
parenteab7dbda3b7502f0a952901a80fb5e628ccd7a28
gh-70039: smtplib: store the server name in ._host in .connect() (#115259)

Original patch by gigaplastik, extended with a few more tests.

Addresses gh-70039 and bpo-25852: failure of starttls if connect is called explicitly.
Lib/smtplib.py
Lib/test/test_smtpnet.py
Misc/NEWS.d/next/Library/2024-02-10-21-25-22.gh-issue-70039.6wvcAP.rst [new file with mode: 0644]