From: Barry Warsaw Date: Fri, 1 Sep 2000 06:40:07 +0000 (+0000) Subject: Applied patch #101350, closing it. X-Git-Tag: v2.0b1~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bf94a0b772276548781ec6c29c3bd1cc96115d7;p=python Applied patch #101350, closing it. --- diff --git a/Lib/smtplib.py b/Lib/smtplib.py index beda161663..6536371846 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -224,7 +224,9 @@ class SMTP: if self.debuglevel > 0: print 'send:', `str` if self.sock: try: - self.sock.send(str) + sendptr = 0 + while sendptr < len(str): + sendptr = sendptr + self.sock.send(str[sendptr:]) except socket.error: raise SMTPServerDisconnected('Server not connected') else: