Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Arno Garrels
You need to handle exceptions, although this can be done in many different ways the following (scribbled in OE) may show one possible way: procedure TThreadedMail.Execute; var msg:TMsg; IsMessage : Boolean; begin try mainform.SmtpCli.ThreadAttach; try mainf

Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Francois PIETTE
ing" Sent: Sunday, May 13, 2007 4:25 PM Subject: [twsocket] SmtpCli and the results of some tests > Hello, > > I've tested one of my ideas for making SmtpCli working for me now. > I've constructed a thread which will do the sending of the mail and thus > does a th

Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Wilfried Mestdagh
Hello Markus, Looks ok at first sight. But wy not create / destroy the component in the thread's Execute ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, May 13, 2007, 16:25, Markus Humm wrote: > Hello, > I've tested one of my idea

[twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Markus Humm
Hello, I've tested one of my ideas for making SmtpCli working for me now. I've constructed a thread which will do the sending of the mail and thus does a thread attach/detach and has its own message loop. It also knows the threadid of the main program so it posts a message to it when the thread