Hyperlink an Email Address using LinkLabel in C#

Chris Bacon picture Chris Bacon · Nov 23, 2010 · Viewed 41.6k times · Source

I have made an about box that is meant to allow users to click the hyperlink email address which will take them to a Microsoft Outlook to be able to send an email to the email address, but I don't know how to link it to Outlook and allow the user to click the link to do this

Answer

Ozzy picture Ozzy · Nov 23, 2010

You are not saying whether you are using Win- or WebForms...in WinForms I think you need to create an event-handler for the click event. Inside that you can start the default mail application by typing:

System.Diagnostics.Process.Start("mailto:[email protected]");