New submission from Oliver Merkel:
class SMTP:
def auth_login(self, challenge=None):
The self.docmd should use cmd "AUTH" with parameter "LOGIN" + encoded login like
(code, resp) = self.docmd("AUTH", "LOGIN " +
encode_base64(s
Oliver Merkel added the comment:
Let us assume you want to establish a smtp session with AUTH LOGIN as the
supported authentication type. Sample code to send mail: Typical preparation
steps like
with SMTP( mailserver, 587 ) as smtp:
# smtp.set_debuglevel(1)
smtp.ehlo
Oliver Merkel added the comment:
Sample session log output showing the error with smtp.set_debuglevel(1):
send: 'ehlo \r\n'
reply: b'250- Hello [myIP4address]\r\n'
reply: b'250-SIZE 53248000\r\n'
reply: b'250-PIPELINING\r\n'
reply: b'250-DSN\r\n
Oliver Merkel added the comment:
Change proposal attached as a unified diff / patch file.
--
keywords: +patch
Added file: http://bugs.python.org/file40829/smtplib-patch.issue25446.patch
___
Python tracker
<http://bugs.python.org/issue25