I am trying to send mail as follows:
1. under Win2K/SP 4 in old style (nMailMode = 2)
2. under WinXP/SP 3 in old and new style
I created a very simple test program based on your example.
I am using the identical prg in both environments. The prg tests if DotNet2 is available. If .Net2 is available, it calls loSmtp.SendMail(). If .Net2 is not available, it calls loSmtp.SendMailAsync().
It is working when I send email under WinXP/SP3 asynchronously. (To test this, I manually set the program to call SendMailAsync even though .Net2 exists).
It is not working as follows:
under Win2K/SP4 with nMailMode = 2:
I receive the error message "The procedure entry point DecodePointer could not be located in the dynamic link library KERNEL32.dll"
Then I receive a VFP error message: "cannot load 32 bit dll wwIPStuff.dll
I have two dlls (wwIPStuff and wwDotNetBridge) in the same directory with the test program. The version number of both dlls is 5.66.
Can you suggest what I can do to track down the cause of this error?
Under WinXP/SP3 with nMailMode = 0:
It is failing but it is returning several different error messages.
I set the program to run in a loop (100 iterations)--I received the following results:
9 successes (so I assume the code itself is ok since it does occasionally succeed)
90 failures with message "Failure sending mail."
0 failures with message "Server does not support secure connections."
1 failure with message indicating timeout (I set the time to 125 seconds)
I set loSmtp.lUseSsl to .F. Before I did this, I often received the message "Server does not support secure connections". I am not getting this error message any more since setting loSmtp.lUseSSL to .F.
I am having a problem with the call timing out so it appears something is wrong between me and my ISP (Earthlink), but I don't have any idea what the problem is. I set the timeout to 125 seconds.
When I send mail via Outlook Express, it almost always goes through--sometimes it times out, and sometimes it takes a long time to go out.
I am upgrading from WWIP 4.3 to WWIP 5.66. I was having the same problem with WWIP 4.3: it took a long time to send a message and the send frequently failed. Also, it would sometimes take weeks for the sent message to arrive to the recipient's machine! When I send a message from Outlook Express, it arrives promptly. I was hoping that this problem would disappear with the new version of WWIP but it appears that the problem is caused by something outside WWIP.
Have you ever heard of something like this happening (where send usually fails when sent through WW but generally succeeds when sent through Outlook or Outlook Express, or where a message sent by WWIP takes weeks to arrive to the recipient)?
Thanks, Chaim