<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmailExample.aspx.cs" Inherits="Misc.EmailExample" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Sending Email Example</title>
<style type="text/css">
body { background-color: #ff6c6c; }
table { border-width: 0; }
tr { vertical-align: top; }
</style>
</head>
<body>
<h3>This example demonstrates the sending email in a ASP.NET
Web Application.</h3>
<form id="form1" runat="server">
<table>
<tr>
<td>From: </td>
<td><asp:TextBox ID="txtEmailFROM" runat="server" Height="22px" Width="200px" /></td>
</tr>
<tr>
<td>To: </td>
<td><asp:TextBox ID="txtEmailTO" runat="server" Height="22px" Width="200px" /></td>
</tr>
<tr>
<td>Subject: </td>
<td><asp:TextBox ID="txtSubject" runat="server" Height="22px" Width="330px" /></td>
</tr>
<tr>
<td>Message: </td>
<td><asp:TextBox ID="txtMessage" runat="server" Height="88px" Rows="5"
TextMode="MultiLine" Width="330px" /></td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="btnSendMail" runat="server" Height="29px" Text="Send Mail"
Width="107px" OnClick="btnSendMail_Click" />
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Label ID="lblDisplay" runat="server" Text="" /></td>
</tr>
</table>
</form>
</body>
</html>