[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== smtpmail (OpenInsight 32-bit) ====
=== At 19 JUL 2012 12:16:16PM Paxton Scott wrote: ===
{{tag>"OpenInsight 32-bit"}}
Greetings!
I have been using OI 9.1.1 smtpmail for some years, just fine.
Recently, working on an application that calls the function twice to send emails to two parties I have the issue where sometimes, it returns only the first field "REQS^All OK" (^ is the @vm) in stead of the normal 5 fields
This does not happen every time, so I am thinking something maybe timing to do with my ISP.
I have put a 2+ second delay between calls, not clear if that helps.
Another idea I am thinking of but not tried is to repeat the call 1 or 2 times before giving up when this happens.
So, I guess the question is: Under what conditions will the function return only "REQS All OK" (field one) only?
Any Insights?
Have fun,
Paxton
----
=== At 20 JUL 2012 01:16PM Dave Harmacek wrote: ===
Can't answer you formal question.
But, I always send mail, call Yield(), then delay 1000 ms
Dave Harmacek
Harmacek Database Systems
----
=== At 20 JUL 2012 01:23PM Paxton Scott wrote: ===
Thanks, Dave. Good advice.
Paxton
----
=== At 26 JUL 2012 02:45AM S Smith wrote: ===
Try establish a session with telnet to your server and see if it has any irregular prompt messages from the server, or any notable delays. These could be messing with the flow of SMTPmail.
There were calls for SMTPMAIL to "yield" via KERNEL32.DLL throughout its execution. These are prototyped as
ULONG STDCALL Sleep(ULONG) AS "whateverRevsoftNamedit"
Maybe these need to be altered if they still exist....
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=1DFD0C8D0004ED7C18D178B00|View this thread on the forum...]]