Re: Sending emails from a thread

Giganews Newsgroups
Subject: Re: Sending emails from a thread
Posted by:  Remy Lebeau (TeamB) (
Date: Thu, 29 Sep 2005

"Ross McMillan" <rossm…> 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.

Quite right.



In response to

Sending emails from a thread posted by Ross McMillan on Fri, 30 Sep 2005