IdSMTP - Connection Closed Gracefully

Giganews Newsgroups
Subject: IdSMTP - Connection Closed Gracefully
Posted by:  Alan T (alan_NO_SPAM_plt…@yahoo.com.au)
Date: Mon, 14 Dec 2009

D2007
My client got this error yesterday:
Connection Closed Gracefully.

These are the code:

try
  StaffIdSMTP.Connect;
  StaffIdSMTP.Send(IdMsgSend);
  Log('Email sent');
finally
  idSMTP.Disconnect;
end;

The user did not get 'Socket error' so the connect should be fine:
StaffIdSMTP.Connect;

Since we did not have the log entry in the log file: 'Email sent'.
So we assume it happened here:
StaffIdSMTP.Send

Our client tried 3 times (each time when the error came up he needed to
close the
application) in our application yesterday and got the same error. So he
could not ever send the email.

So the application looked was able to connect but not able to send.

Replies