Re: Multiple IdSMTP Threads?

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

"Craig Stevenson" <no…@nowhere.com> wrote in message
news:49C1F1003921E340no…@nowhere.com...

> I have been successfully using the IdSMTP component for awhile,
> but after trying to use multiple instances, I get intermittent 503
errors
> 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.

Gambit

Replies

In response to

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