bcyde
February 8th, 2000, 01:54 PM
I want to open a user's default email app to a certain email, however I am unsure of how to do this. Let's say my program see's a windows email document (something with an .eml extension) how can I open up the default browser with the email showing.
Any help would be greatly appreciated.
Thanks
Aaron Young
February 8th, 2000, 02:37 PM
Try using the ShellExecute API, ie.
private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (byval hwnd as Long, byval lpOperation as string, byval lpFile as string, byval lpParameters as string, byval lpDirectory as string, byval nShowCmd as Long) as Long
private Sub Command1_Click()
ShellExecute 0, "OPEN", "C:\Email.eml", "", "", 1
End Sub
Aaron Young
Analyst Programmer
ajyoung@pressenter.com
aarony@redwingsoftware.com