Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
E-MAIL Application
Message
From
17/11/1998 01:55:03
 
 
To
16/11/1998 22:18:06
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00158081
Message ID:
00158146
Views:
22
>>>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)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform