Board index » Visual Studio » Open client's default email cleint application (not an email).

Open client's default email cleint application (not an email).

Visual Studio189
Hi there... I need some .NET code to open the default email client. I

do not need to open an email (that would be easy), I need to open the

application itself, as if the user is clicking on an icon to go check

their mail. I'm using VB.NET, but can convert C# if needed...





...anyone know how to do this?





WATYF


-
 

Re:Open client's default email cleint application (not an email).

Hi



The Default E-mail Client path is held in this registry key:



HKEY_CLASSES_ROOT\mailto\shell\open\command



Read the 'default' key. This is what mine is set to:



"%ProgramFiles%\Outlook Express\msimn.exe" /mailurl:%1



So, open the above key, read the default value & then use process.start to

open it



Easy





-

Re:Open client's default email cleint application (not an email).

Thanks man... that's just what I was looking for.



Now I just hope I can parse the "exe" file out of the string

succesfully in all cases. I can't imagine there would be many

exceptions, but you never know.





WATYF



-