Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email/Web Site Nav
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00214551
Message ID:
00215376
Vues:
29
>Eric,
>
>So how would I do
>
>oShell = CREATEOBJECT('Shell.Application')
>oShell.Open("mailto:someone@somewhere.com")
>
>in NT 4.0 and Win95/98?
>

As long as you have a MAPI-compatible mail client installed, and Shell version 4.71 or later (that means NT 4 with SP3 or later, Win95 OSR 2, Win98, or any version with IE version 4.0 or later installed has the necessary components in place) the above with work with no problem - it will launch the default mail client as set in the registry, and will fill in the recipient address as specified in the mailto:

The two possible problems are: (1) Shell.Application is not supported by the version of the Windows Shell installed on the system, and (2) no default client is recognized by the system. You can fix the problems by (1) upgrading the operating system to a supported version or installing a current version of IE 4 or IE5, and (2) by installing and configuring a compatible mail program (I know that Eudora, Outlook, Outlook Express, cc:Mail, Lotus Notes Mail and Exchange will all work fine, and would expect others to work as well unless something were seriously wrong.)

Obviously, there has to be a mechanism to get this to the Internet if you want to specify an internet address destination; if you don't have a direct internet connection, your company mail server most likely can handle this for you via some sort of SMTP gateway.

>Thankx
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