Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to open the default e-mail program?
Message
From
12/02/2001 22:13:24
 
 
To
12/02/2001 21:06:04
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00475138
Message ID:
00475154
Views:
42
>I would like to open the default e-mail program (outlook, outlook express, etc) from within VFP6. Ideally, my vfp app will open the e-mail program and create a new blank message with the recipient already filled in with a character string passed from VFP.

Try using the FFC _ShellExecute class and the Mailto: identifier:
oShell = NEWOBJECT('_shellexecute','ffc\_environ.vcx')
oShell.ShellExecute('mailto:edr@esolserv.com')  && opens new email with specified recipient
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