Applied patch #101350, closing it.

This commit is contained in:
Barry Warsaw 2000-09-01 06:40:07 +00:00
parent 21fbd540ed
commit 5bf94a0b77
1 changed files with 3 additions and 1 deletions

View File

@ -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: