 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Salvatore Besso Guest
|
Posted: Thu Nov 25, 2004 11:12 am Post subject: Suddendly I get an error 10053 with SMTP |
|
|
hello all,
Delphi 7 Pro and latest snapshot of Indy 9.
My application sends two messages one after the other. Very schematic
description:
IdMessage.Clear;
....prepare the message... // only a plain text message
try
SMTP.Connect;
SMTP.Send(IdMessage)
finally
SMTP.Disconnect
end
This message goes out ok and quite fast. Immediatly after this, I send the
second message:
IdMessage.Clear;
....prepare the message... // a message with attachment
Attach := TIdAttachment.Create(IdMessage.MessageParts, FileName);
Attach.ContentTransfer := 'base64';
Attach.ContentDisposition := 'attachment';
Attach.ContentType := GetMIMETypeFromFile(FileName);
try
SMTP.Connect;
SMTP.Send(IdMessage)
finally
SMTP.Disconnect
end
After a while I get this error:
Socket error 10053
Software caused connection abort
and this error doesn't allow me to make other operations because of the
exception logic in the program. But I have noticed that the message has been
sent, so why this error pops out if the message is sent successfully?
I have tried to change SMTP.ReadTimeOut but I don't think that it could be
useful. Anyway actually this property is set to default (zero).
Any help would be greatly appreciated.
Regards
Salvatore
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|