Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to open the default e-mail program?
Message
De
12/02/2001 22:13:24
 
 
À
12/02/2001 21:06:04
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00475138
Message ID:
00475154
Vues:
40
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform