]> granicus.if.org Git - python/commitdiff
Applied patch #101350, closing it.
authorBarry Warsaw <barry@python.org>
Fri, 1 Sep 2000 06:40:07 +0000 (06:40 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 1 Sep 2000 06:40:07 +0000 (06:40 +0000)
Lib/smtplib.py

index beda161663ed85ef3334a67be5243d69511d95cc..6536371846be50e888f101c9bf5b5cce18f0d454 100755 (executable)
@@ -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: