BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Suddendly I get an error 10053 with SMTP

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Salvatore Besso
Guest





PostPosted: Thu Nov 25, 2004 11:12 am    Post subject: Suddendly I get an error 10053 with SMTP Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.