Thanks for the quick response. That was just what I needed.
One more quick question. When the body of the email comes over from foxpro it ignores the returns in the text. Would there be a simple way to keep those returns in place using a text email rather than HTML email?
Thanks in advance!
>You can use ShellExecute Win Api function
DECLARE INTEGER ShellExecute ;
> IN SHELL32.DLL ;
> INTEGER nWinHandle,;
> STRING cOperation,;
> STRING cFileName,;
> STRING cParameters,;
> STRING cDirectory,;
> INTEGER nShowWindow
>
>lcEmailAddress = "somebody@someplace.com"
>lcCCAddress = "somebodyelse@someplace.com"
>lcSubject = "This is a test message"
>lcMessageBody = "This a message body."
>
>ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
> "&CC=" + lcCCAddress + "&body=" + lcMessageBody, "", "", 1)
>
>
>>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.
>>
>>Thanks,
>>Tim Trostle