In my service application, im using TNMSMTP component to send mails. But the CPU usage goes 100% when the mails are being sent..I found out that the Connect method of TNMSMTP is taking too much of the usage. Is there a way wherein I could reduce the CPU usage..
My code goes something like this
m_smtp := TNMSMTP.Create(nil);
Host , Timeout and other details are assigned to the object.
while not dbTablename.Eof do
//Get database values into mail component parameters
As the Connect is still active inside the loop, the CPU usage increases. Is there a way I could avoid this??
Thanx in Advance