|Subject:||Re: Sending emails from a thread|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Thu, 29 Sep 2005|
"Ross McMillan" <rossm…@gmail.com> wrote in message
> My question is to do with aborting the email if it should
> look like it is going to take a while.
The only way to abort is to either:
1) close the connection from another thread
2) throw an exception, such as EAbort, from any of the various events, such
as OnWork. Or implement a custom IOHandler or Intercept class that will
throw the exception when needed.
> My reading of the TidSMTP component is that once I call
> Send the thread will disappear into the bowels of Indy for
> a long time.
Sending emails from a thread posted by Ross McMillan on Fri, 30 Sep 2005