Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: Connection Status ?

www.cryer.info
Managed Newsgroup Archive

Re: Connection Status ?

Subject:Re: Connection Status ?
Posted by:"Martin James" (mjames_falc..@dial.pipex.com)
Date:Fri, 17 Mar 2006 10:38:20

>
> One thing I can't seem to find is, how can I return the connection status
once connected ?  If I send an email for example, how can I find out if it
was a success ?

It is a success if it is not a failure <g>

Indy clients, like TidSMTP, throw exceptions if something does not work.  If
there is no exception, the mail got sent to the server OK:

try
    myMailer.send(myMessage);
    logWrite('Mail sent OK');
except
    on e:exception do logWrite('Mail failed: '+e.message);
end;

Rgds,
Martin

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive