>>>How could I automate from my commandbutton named "Send E-mail" wherein the NEW MESSAGE window of the Microsoft Exchange will pop-up on my screen.
>>
>>Hm... if you are in 6.0 you can use the new URL controll and use a mailto: tag, which should bring up your message send screen.
>>
>>Other than that, you will want to use automation with your mail client.
>>
>>BOb
>
>Generic /client independent solution:
>
>oShell = CREATEOBJECT('Shell.Application')
>oShell.Open('Mailto:
esmoore@flash.net')
I have two objections to that. First, I've found some original Win95 systems that didn't support the Shell.Application automation object without further add-ons (like installing and version of IE 3 or later). The other is it also seems to launch a browser window, which often comes to the top initially, and doesn't close down by itself. I prefer the following:
DECLARE INTEGER ShellExecute IN SHELL32 ;
INTEGER hWnd, ;
STRING lpOperation, ;
STRING lpFile, ;
STRING lpCmdLineParams, ;
STRING lpStartingDir, ;
INTEGER nShowCmd
=ShellExecute(0,'OPEN','MAILTO:edrauh@earthlink.net',0,0,0)