Hi,
I have a button on a form, when clicked it opens a new email message. To me, it looks like my code is specifying that a user must have MS Internet Explorer, and MS Outlook Express in order to send out an email message.
Question---> Is there a way that I can check to see what a user's default email client is? There's gotta be either an ActiveX control for this purpose, or a built in Visual FoxPro function that does this. Here's the code that I'm currently using in the Click Event of the button:
LOCAL l_oIE, l_emailaddr
l_oIE=CREATEOBJECT("InternetExplorer.Application"
IF TYPE('l_oIE') <> 'O'
g_osubs.displaymessage("Unable to create InternetExplorer Object for mail processing."
else
l_emailaddr = "mailto:my@emailAddress.com"
l_oIE.Navigate(l_emailaddr)
RELEASE l_oIE
endif
I have a button on a form, when clicked it opens a new email message. To me, it looks like my code is specifying that a user must have MS Internet Explorer, and MS Outlook Express in order to send out an email message.
Question---> Is there a way that I can check to see what a user's default email client is? There's gotta be either an ActiveX control for this purpose, or a built in Visual FoxPro function that does this. Here's the code that I'm currently using in the Click Event of the button:
LOCAL l_oIE, l_emailaddr
l_oIE=CREATEOBJECT("InternetExplorer.Application"

IF TYPE('l_oIE') <> 'O'
g_osubs.displaymessage("Unable to create InternetExplorer Object for mail processing."

else
l_emailaddr = "mailto:my@emailAddress.com"
l_oIE.Navigate(l_emailaddr)
RELEASE l_oIE
endif