Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launch Default Email
Message
De
02/07/2002 18:04:50
 
 
À
01/07/2002 10:26:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00673868
Message ID:
00674752
Vues:
22
>I am trying to let a user click on an email address displayed in a Foxpro textbox, and have a new mail message open in the users default email.
>
>I have tried two methods so far. First I used the hyperlink object and called NavigateTo with "mailto:someemailaddress" as the cTarget.
>
>This almost works. It opens internet exloperer, then opens the new mail message.
>
>I tried using the Run command, but it doesn't seem to recognize "Mailto:".
>
>I also tried run /N explorer mailto:someemail and it opens internet explorer and the new email message.
>
>There must be a way to get the new email message without opening internet explorer.
>
>Any help would be appreciated.

Try:
oShell = CREATEOBJ('Shell.Application')
oShell.Open('mailto:someemail')
Shell.Application is dependent onhaving a reasonably current set of Shell components; the only problems are with original Win95/Win95a systems which never had IE 4 installed (later versions don't install the revised Active Desktop components needed) and WinNT 4.0 pre SP3 that never had IE4 installed, for the same reason. Machines that lack the components require that you install IE4; if a later version isalready installed, you should uninstall the current IE version, install IE4 to get the Active Desktop components, and then reinstall the current version of IE in place when you start the upgrading process.

>
>Thanks,
>Tim Trostle
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
Répondre
Fil
Voir

Click here to load this message in the networking platform