Re: Multiple IdSMTP Threads?

Giganews Newsgroups
Subject: Re: Multiple IdSMTP Threads?
Posted by:  Remy Lebeau (Indy Team) (
Date: Thu, 5 Apr 2007

"Craig Stevenson" <no…> wrote in message

> I have been successfully using the IdSMTP component for awhile,
> but after trying to use multiple instances, I get intermittent 503
> from my application.  (Bad sequence of commands.)  I suspect this
> is because my code isn't properly handling multiple instances.

Multiple instances do not interfer with each other.  Each connection
is unique on the server.  So your problem is something else.

> Do you have any sample code for a thread safe IdSMTP implementation?

As long as each instance is local to its own thread, then it is
already thread-safe.



In response to

Multiple IdSMTP Threads? posted by Craig Stevenson on Thu, 5 Apr 2007