SENDING MAIL USING C#
email.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="email.aspx.cs" Inherits="email" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table >
<tr><td><asp:Label ID="labto" runat="server" Text="To"></asp:Label></td><td>:</td><td><asp:TextBox ID="txtto" runat="server" ></asp:TextBox></td></tr>
<tr><td><asp:Label ID="labsub" runat="server" Text="Sub"></asp:Label></td><td>:</td><td><asp:TextBox ID="txtsub" runat="server" ></asp:TextBox></td></tr>
<tr><td><asp:Label ID="labmsg" runat="server" Text="Message"></asp:Label></td><td>:</td><td><asp:TextBox ID="txtmsg" runat="server" ></asp:TextBox></td></tr>
</table>
</div>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</form>
</body>
</html>