Email class in C# that uses smtp server to send email.

Must define the mail settings in web.config
<system.net>
    <!-- Mail settings -->
    <mailSettings>
      <smtp deliveryMethod="Network" from="fromEmailAddress@host.com">
        <network defaultCredentials="true" host="webmail.ubh.com" port="25" />
      </smtp>
    </mailSettings>
  </system.net>