Microsoft KB Archive/189921

= PRB: Mailto: Hyperlink Object Starts Internet Explorer in Error =

Article ID: 189921

Article Last Modified on 3/1/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q189921



SYMPTOMS
Using the Mailto: URL syntax with the HyperLink object to send e-mail causes Internet Explorer to launch before the new mail message window appears.



CAUSE
The API used by the HyperLink object does not support the Mailto: and File: links.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Run the following code: oX=NewObject("HyperLink") oX.NavigateTo("mailto:myemail@mydomain.com") 

Internet Explorer appears before the new mail message window.

WORKAROUND
To work around this behavior, use the FoxPro Foundation Classes' _ShellExecute class. loRunIt = NEWOBJECT("_ShellExecute", HOME + "ffc\_environ.vcx") loRunIt.ShellExecute("mailto:myEmail@myDomain.com")

Additional query words: kbVFp600 kbInternet

Keywords: kbprb KB189921

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.