Use TSslSmtpCli and call the async methods. Your threads must
also implement a message pump or simply call the ICS, built-in,
message pump instead (TSslSmtpCli.CtrlSocket.MessageLoop).
But how to implement message pump if I create many TSmtpCli
inside TThread ?
I must implement loop like this this ?
for i:=0 to MySmtpCliList_InThisThread.Count-1 do
TSmtpCli(MyStmpCliList_InThisThread.Items[i]).CtrlSocket.MessageLoop;
What is better - using 20 non-blocking TSmtpCli's inside thread and call
CtrlSocket.MessageLoop OR using blocking TSyncSmtpCli and call Sync
methods without MessageLoop ? What is fasten and more efficient ?
Thanx for help !
--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be