>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