There are two new namespaces in .Net for handling/sending mails.
You have to be using MailMessage and SmtpClient classes.
There are properties to set the mail server, pass user credentials for the SMTP server(thru NetworkCredential class).You can also send email through SSL, send emails asynchronous, send emails with alternate views( text emails for email clients that block HTML email display), email with linked image resources
Please refer here for more information