Commit e65607c4 authored by Barry Warsaw's avatar Barry Warsaw

Applied patch #101350, closing it.

parent ab1e1380
...@@ -224,7 +224,9 @@ class SMTP: ...@@ -224,7 +224,9 @@ class SMTP:
if self.debuglevel > 0: print 'send:', `str` if self.debuglevel > 0: print 'send:', `str`
if self.sock: if self.sock:
try: try:
self.sock.send(str) sendptr = 0
while sendptr < len(str):
sendptr = sendptr + self.sock.send(str[sendptr:])
except socket.error: except socket.error:
raise SMTPServerDisconnected('Server not connected') raise SMTPServerDisconnected('Server not connected')
else: 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