>>>Understand - some consumer ISP's are reluctant to allow a node SMTP client to send too many emails. And some - depending on how they're routed - are slow to receive. I think what is happening is that the object is being recreated and initialized for every mail.
>>
>>The problem occurs only when sending emails using pure VFP code using code from
http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail#winsock>>
>>I found that the problem is in line
>>
>>
nWait = WSAWaitForMultipleEvents(1, @hEventRead,;
>> 0, 1000, 0)
>>
>>This causes ALWAYS 1 second delay, even if data is received immediately.
>>Any idea how to fix this ?
>
>Experiment with the parameters - my guess is that 1000 means milliseconds.
I think I cannot decrase it: at least 1000 ms is required for waiting server response packet. I would be even better to use 5000 ms for loaded server.
Andrus