sending msg to and email account

Ok so my problem is that I program in mostly php and js. I can send messages from my website to email via a form using php. as below. However I need to do the same thing using C# and I cant seem to figure it out, any help or site links would be much appreciated.