Thursday, April 3, 2008

The task at hand is taking the input from a form, and emailing those results
to a desired target.  .The first thing that's necessary, of course is the
form. For this example, we're using VB.Net and ASP.Net server controls.
Naturally, for the purposes of this tutorial, we're going to keep it fairly
simple, but the same principles apply for a much more expanded form. Here's a
sample of the HTML section for the form:



<Form id="form1" runat="server">
First Name: <asp:TextBox id="txtFname" runat="server" />
Last Name: <asp:TextBox id="txtLname" runat="server" />
Email: <asp:TextBox id="txtEmail" runat="server" />
CC: <asp:TextBox id="txtCC" Runat="server" />
<br />Favorite Color: <asp:DropDownList id="ddlColor" Runat="server">
<asp:ListItem>Blue</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList><br />
<asp:Button id="btnEmail" Text="Email Form" onclick="doEmail" runat="server" />
</Form>