You need to add info about SMTP in your Web.config file:
<configuration>
<system.net>
<mailSettings>
<smtp>
<network
host="relayServerHostname"
port="portNumber"
userName="username"
password="password" />
</smtp>
</mailSettings>
</system.net>
<system.web>
...
</system.web>
</configuration>
Follow the links for more details:
Sending Email in ASP.NET 2.0 [
^]