Actually, my call to Execute file is a morph of ShellExecute, so it returns
a handle:
myhandle:=ExecuteFile('mailto:[EMAIL PROTECTED]?subject='+regstring, '',
'',SW_SHOWNOACTIVATE);
while (waitforsingleobject(myhandle,infinite)=WAIT_OBJECT_0)
and not(escape) do application.ProcessMessages;
Application.HelpJump('OnlineOrder');
Unfortunately, the handle of the mail object remains unchanged after the
send button is pressed - maybe it is due to the mail being outstanding - it
should not be forced to be sent.
Any other ideas, or am I missing something?
thanks,
Al+
> If you use ShellExecute, you can get hold of the process handle, then use
> WaitForSingleObject. What the function returns, the process is done.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz