Commit 5bf94a0b authored by Barry Warsaw's avatar Barry Warsaw

Applied patch #101350, closing it.

parent 21fbd540
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment