We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6620ef0 commit ab1bef8Copy full SHA for ab1bef8
1 file changed
Lib/smtplib.py
@@ -734,6 +734,7 @@ def login(self, user, password, *, initial_response_ok=True):
734
preferred_auths = ['CRAM-MD5', 'PLAIN', 'LOGIN']
735
else:
736
preferred_auths = ['PLAIN', 'LOGIN']
737
+ # We try the supported authentications in our preferred order, if
738
# the server supports them.
739
authlist = [auth for auth in preferred_auths
740
if auth in advertised_authlist]
0 commit comments