Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending emails directly from VFP takes extremely long ti
Message
From
29/12/2005 17:36:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/12/2005 14:51:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01080354
Message ID:
01081884
Views:
21
>>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform