From 5bf94a0b772276548781ec6c29c3bd1cc96115d7 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 1 Sep 2000 06:40:07 +0000 Subject: [PATCH] Applied patch #101350, closing it. --- Lib/smtplib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/smtplib.py b/Lib/smtplib.py index beda161663e..6536371846b 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -224,7 +224,9 @@ def send(self, str): 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: