Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cdo 2000 send() hangs occasionally
Message
From
26/08/2015 03:11:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01623842
Message ID:
01623846
Views:
83
>I've been using Sergey's cdo2000.prg for some time now and it works great.
>
>https://www.berezniker.com/content/pages/visual-foxpro/cdo-2000-class-sending-emails
>
>Recently, however, I've started encountering random hangs. I added some logging code to figure out exactly where it was hanging and it's at:
>
>this.oMsg.SEND()
>
>The same computer will send hundreds of emails fine and then, for no discernible reason, it hangs at this line.
>
>The default timeout is 30 seconds but the hang is not releasing; my application has to be end-tasked.
>
>Any ideas?

A guess, but might it be limitations set by the SMTP server or ISP? Some have limitations such as:

- Total # of messages per hour and per day
- Total # of recipients per hour and per day
- Total size of messages per hour and per day

If you hit such a limitation you typically don't get any sort of error message or warning. I don't know how an SMTP server or ISP might respond to a perceived violation, but it's not impossible whatever they do could hang a SEND().

If you have a good relationship with the server owner or ISP you could ask them if they've logged any unusual events around the times you're seeing these intermittent errors.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform