-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smtplib on linux fails to log in correctly #75483
Comments
The protocol should run like this: send: 'ehlo XXXXXXXXXXXXX\r\n' And in fact it does so on Windows. However, on Linux it runs like this: send: 'ehlo XXXXXXXXXXXXX\r\n' The last sent message is an empty string and then the authentication fails. All other tokens which are replaced by XXXXXX, RRRRR or TTTTT are exactly the same. This way the login fails and I can not use smtplib to send my mail. |
PS: The corresponding code is: server_ssl = smtplib.SMTP(SERVER, PORT)
server_ssl.set_debuglevel(True)
server_ssl.ehlo()
server_ssl.starttls()
server_ssl.login(USER_FOR_AUTHENTICATION, XXXXXX) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: