This resource has not currently been approved, and is not currently linked to from our directory of resources. It is being displayed here for preview by the author and moderators only.
SendMail.aspx
<div style="font-family: Verdana, Sans-Serif; font-size: 8pt; color: black; background-color: #eeeeee;">
<%@ Page Language="VB" ValidateRequest="false" AutoEventWireup="false" CodeFile="SendMail.aspx.vb" Inherits="SendMail" %>
<!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>Send Mail</title>
<style type="text/css" media="screen">
body
{
font-family: Verdana, Sans-Serif;
font-size: 9pt;
color: #000000;
text-align: center;
vertical-align: top;
}
.ctSpacer
{
height: 10px;
}
FORM#AppMailForm
{
width: 100%;
height: auto;
}
div.ctWrapper
{
width: 700px;
height: auto;
text-align: center;
vertical-align: top;
}
TD#ContactFormContainerCell
{
width: 100%;
height: auto;
text-align: center;
vertical-align: top;
}
table.ctTableContact
{
width: 100%;
height: auto;
text-align: left;
vertical-align: top;
}
TD.ctPageTitle
{
width: 100%;
height: 35px;
text-align: left;
vertical-align: middle;
padding-left: 15px;
background-color: #eeeeee;
border-bottom: solid 2px #cccccc;
}
.ctPageTitleLabel
{
font-family: Georgia, Serif;
font-size: 10pt;
color: #900000;
font-weight: bold;
}
.TextCell
{
width: 100%;
height: 20px;
text-align: left;
vertical-align: middle;
}
.LabelControls
{
font: 9pt Verdana, Sans-Serif;
color: #434041;
}
.InputCell
{
width: 100%;
height: 25px;
text-align: left;
vertical-align: middle;
}
.InputCell input
{
text-align: left;
vertical-align: middle;
color: #434041;
}
.validatorHand
{
cursor: hand;
}
td.Note span
{
font-family: Verdana, Sans-Serif;
font-size: 11pt;
font-weight: bold;
color: #000000;
}
.infoMessage
{
font: 8pt Verdana, Sans-Serif;
color: #434041;
}
input.SendMessageButton
{
text-align: center;
vertical-align: middle;
}
#AllControlsValidationSummary
{
width: 99%;
height: auto;
text-align: left;
vertical-align: top;
padding-left: 5px;
padding-top: 5px;
}
</style>
</head>
<body>
<form id="AppMailForm" runat="server" method="post" enctype="multipart/form-data">
<div class="ctWrapper">
<table class="ctTableContact" cellpadding="0" cellspacing="0">
<thead>
<tr id="MAIL_HEADER">
<td class="ctPageTitle">
<asp:Label ID="PageTitleLabel" runat="server" CssClass="ctPageTitleLabel">Send Mail Message</asp:Label>
</td>
</tr>
<tr>
<td class="ctSpacer">
</td>
</tr>
</thead>
<tbody id="MAIL_CONTENT">
<tr>
<td id="ContactFormContainerCell">
<table class="ctTableContact" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td id="Td1" class="TextCell">
<asp:Label ID="FromLabel" runat="server" Text="Sender:" CssClass="LabelControls"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorSenderTextBox" runat="server"
ControlToValidate="SenderTextBox" CssClass="validatorHand" ErrorMessage='You must provide an e-mail address! This field is required.'
Font-Names="Verdana" Font-Size="12pt" ForeColor="#FF0000" ToolTip='You must provide an e-mail address!'>*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td id="Td2" class="InputCell">
<asp:TextBox ID="SenderTextBox" runat="server" Width="200px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidatorSenderTextBox" runat="server"
ControlToValidate="SenderTextBox" ErrorMessage='Your e-mail address is not in the right format!'
Font-Names="Verdana" Font-Size="12pt" ForeColor="#ff0000" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td id="Td5" class="TextCell">
<asp:Label ID="SubjectLabel" runat="server" CssClass="LabelControls" Text="Subject:"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorSubjectTextBox" runat="server"
ControlToValidate="SubjectTextBox" CssClass="validatorHand" ErrorMessage='You must provide a subject to your message! This field is required.'
Font-Names="Verdana" Font-Size="12pt" ForeColor="#ff0000" ToolTip='You must provide a subject to your message!'>*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td id="Td6" class="InputCell">
<asp:TextBox ID="SubjectTextBox" runat="server" Width="300px"></asp:TextBox>
</td>
</tr>
<tr>
<td id="Td7" class="TextCell">
<asp:Label ID="MesssageLabel" runat="server" CssClass="LabelControls" Text="Message:"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorMessageTextBox" runat="server"
ControlToValidate="MessageTextBox" CssClass="validatorHand" ErrorMessage='You cannot send a blank message! This field is required.'
Font-Names="Verdana" Font-Size="12pt" ForeColor="#ff0000" ToolTip='You cannot send a blank message!'>*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td id="Td8" class="InputCell">
<asp:TextBox ID="MessageTextBox" runat="server" Height="123px" TextMode="MultiLine"
Width="458px" MaxLength="500"></asp:TextBox>
<br />
<asp:Label ID="InfoLabel" runat="server" CssClass="infoMessage">500 chars max</asp:Label>
</td>
</tr>
<tr>
<td class="InputCell">
<asp:RadioButton ID="SendAsHtmlRadioButton" runat="server" Checked="true" Text="Send as HTML"
GroupName="MailingOptions" />
<asp:RadioButton ID="SendAsTextRadioButton" runat="server" Checked="false" Text="Send as Text"
GroupName="MailingOptions" /></td>
</tr>
<tr>
<td id="AttachmentFileUploadCell" runat="server" class="InputCell">
<asp:FileUpload ID="AttachmentFileUpload" runat="server" Width="458px" />
<asp:RequiredFieldValidator ID="UploaderRequiredFieldValidator" runat="server" ControlToValidate="AttachmentFileUpload"
CssClass="validatorHand" ErrorMessage="No file was attached to your message. This field is required."
ToolTip="This field is required.">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td class="InputCell">
<asp:Label ID="ErrorMessageLabel" runat="server" ForeColor="red"></asp:Label>
</td>
</tr>
<tr>
<td id="Td9" class="InputCell">
<asp:Button ID="SendMessageButton" CssClass="SendMessageButton" runat="server" Text="Send" />
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="CaptionContentCell">
<asp:ValidationSummary ID="AllControlsValidationSummary" runat="server" BackColor="#eeeeee"
BorderColor="#cccCCC" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana, Sans-Serif"
Font-Size="8pt" ForeColor="#ff0000" HeaderText="Fix the following errors:" />
</td>
</tr>
</tfoot>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</body>
</html>
</div>