Applied patch #101350, closing it.
This commit is contained in:
parent
21fbd540ed
commit
5bf94a0b77
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue