Hello,
I finally got it working now by using (and somewhat enhancing) that
thread approach.
I've left out the cancelling on long lasting connection attempts right
now, maybe I add it later and I think I might want to do it on shutdown
as well.
Greetings
Markus
--
To unsubscribe or change yo
Hello,
I#ve a new idea and would like some expert opinions about it before
wasting time on it:
what if I put the e-mail sending in a seperate thread where the
SmptCLient is bound to the thread (execute)? So it would have its own
message loop which hopefully wouldn't interfere with the rest of
Hello,
my COM server goes havoc when the e-mail has been sent. If the client
calls some simple functions which normally would only read something
from the database and return the value they fail instead. Functions
which aren't really interdependant or so.
I'm wondering now why. It also happens
Hello,
Wilfried suggested today that I should use a timer. Basically a good
idea, but how to do? The com-server's function should send the mail and
either return sort of true if successfull or false if not (it actually
would return the mail server's address or a empty string if not
successfull
Hello,
I've still or even worse trouble with this e-mail sending. maybe I
should explain it more in detail what my environment is and what I want
to do.
Okay I have this:
COM Client -> COM-Server -> ICS SmtpClient
|
Other application connected via TWSocket (TCP)
Hello Markus,
You dont have to loop. Just set a Timer and Connect, that's all. You can
disable the Timer in OnSessionConnected. If timer expires just call
Abort. When OnSessionClosed is called set a flag. When OnRequestDone is
called and session is closed start your next connection (depending on
s
> The problem is now that I like to cancel the connect if it takes
> too long.
Essentially, you have no control over how long connect takes to time out.
There are registry settings relating to TCP attempts and retry delays,
but messing with them is dangerous and unpredictable, and effects all
Win
Hello,
I'm using your SmtpClient component for sending e-mails.
I'm trying to built in a failover in my application so that if the first
configured mail server can't be reached a second etc. will be tried.
The problem is now that I like to cancel the connect if it takes too long.
timeout:=ti