• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

aspx contact form wont send

IcW@TeR

2[H]4U
Joined
Mar 9, 2000
Messages
3,285
i didnt make this but a friend asked me to look at it and i'm lost as far as aspx goes so i was wondering if anyone here might know what the problem is?
here is the form http://www.decagent.com/questionnaire.aspx
it sends the confirmation email to the person filling it out but it doesn't sent to the recipient, though he told me he recieved it a couple times when i filed it out:confused:

here's the page code
Code:
<%@ Page Language="C#" MasterPageFile="MainMasterPage.master" AutoEventWireup="true"
    CodeFile="Questionnaire.aspx.cs" Inherits="Questionnaire"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div align="left">
        <div style="overflow: hidden; width: 636px;">
            <div style="float: left; width: 24px; height: 34px;">
                <img alt="" width="24px" height="34px" src="images/box_corner1.gif" />
            </div>
            <div style="float: left; background: url(images/bg_top_box.gif); width: 588px; height: 29px;
                padding-top: 10px;" class="Headingstyle">
                QUESTIONNAIRE
            </div>
            <div style="float: left; width: 24px; height: 34px">
                <img alt="" width="24px" height="34px" src="images/box_corner2.gif" />
            </div>
        </div>
        <div style="overflow: hidden; width: 636px;">
            <div style="float: left; width: 24px; height: 34px;">
                &nbsp;</div>
            <div style="float: left; width: 588px;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr><td> <asp:Label ID="Label2" runat="server"></asp:Label><br /></td></tr>
                    <tr>
                        <td height="40" align="left" valign="middle">
                            <strong class="orange">1. Personal Information</strong></td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <table width="100%" cellpadding="0" cellspacing="5">
                                <tr>
                                    <td width="247" align="left" valign="middle">
                                        Name</td>
                                    <td width="309" align="left" valign="top">
                                    <asp:TextBox ID="txtName" runat="server" Width="150px"></asp:TextBox>
                                   <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtName"
                                    ErrorMessage="Enter Name">*</asp:RequiredFieldValidator>--%>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Email Address
                                    </td>
                                    <td align="left" valign="top">
                                    <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
                                    
                                    
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Enter valid email">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Enter Valid Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                                    
                                    
                                    
                                    
                                       
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Telephone</td>
                                    <td align="left" valign="top">
                                    <asp:TextBox ID="txtPlayerPhone" runat="server" Width="150px"></asp:TextBox>
                                   <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtPlayerPhone"
                                    ErrorMessage="Enter Telephone">*</asp:RequiredFieldValidator>--%>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Pager</td>
                                    <td align="left" valign="top">
                                    <asp:TextBox ID="txtPlayerPager" runat="server" Width="150px"></asp:TextBox>
                                     <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtPlayerPager"
                                    ErrorMessage="Enter Pager">*</asp:RequiredFieldValidator>--%>
                                    </td>
                                      
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Cell Phone
                                    </td>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="txtPlayerCell" runat="server" Width="150px"></asp:TextBox>
                                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtPlayerCell"
                                    ErrorMessage="Enter Cell Phone">*</asp:RequiredFieldValidator>--%>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Wife/Girlfriend's Name</td>
                                    <td align="left" valign="top">
                                    <asp:TextBox ID="player_WifeGFName" runat="server" Width="150px"></asp:TextBox>
                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="player_WifeGFName"
                                    ErrorMessage="Enter Wife/Girlfriend's Name">*</asp:RequiredFieldValidator>--%>
                                       </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Children's Name(s)</td>
                                    <td align="left" valign="top">
                                    <asp:TextBox ID="player_ChildrenName" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        What are your hobbies?
                                    </td>
                                    <td align="left" valign="top">
                                     <asp:TextBox ID="player_Hobbies" runat="server" Width="150px"></asp:TextBox>
                                       </td>
                                </tr>
                                <tr align="left" valign="top">
                                    <td>
                                        <p>
                                            Do you have any friends or relatives
                                        </p>
                                        <p>
                                            playing or working for an NFL team?
                                        </p>
                                    </td>
                                    <td align="left" valign="top"><asp:TextBox ID="txtfriends" runat="server" Width="150px"></asp:TextBox>
                                      </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" align="left" valign="middle">
                            <strong class="orange">2. Parental/Guardian Information</strong></td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <table width="100%" cellpadding="0" cellspacing="5">
                                <tr>
                                    <td width="247" align="left" valign="middle">
                                        Names</td>
                                    <td width="309" align="left" valign="top">
                                        <asp:TextBox ID="txtname_inf" runat="server" Width="150px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Address</td>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="txtadd_inf" runat="server" Width="150px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Telephone</td>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="txtPhone_inf" runat="server" Width="150px"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" align="left" valign="middle">
                            <strong class="orange">3. Other People Helping With Agent Selection</strong></td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <table width="100%" cellpadding="0" cellspacing="5">
                                <tr>
                                    <td width="247" align="left" valign="middle">
                                        Name of person(s) helping you select an agent</td>
                                    <td width="309" align="left" valign="top">
                                     <asp:TextBox ID="txtPlayerName_3" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        What are their telephone numbers?</td>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="txtPhome_3" runat="server" Width="150px"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="middle">
                                        Address</td>
                                    <td align="left" valign="top">
                                         <asp:TextBox ID="txtAdd_3" runat="server" Width="150px"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" align="left" valign="middle">
                            <strong class="orange">4. College Information</strong>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <table width="100%" cellpadding="0" cellspacing="5">
                                <tr>
                                    <td width="44%" align="left">
                                        School</td>
                                    <td width="56%" align="left">
                                        <asp:DropDownList ID="ddlSchool" runat="server">
                                            <asp:ListItem Value="0" Selected="True">Select School ]
 
Code:
(Div. I-AA below)</asp:ListItem>
                                            <asp:ListItem>Air Force</asp:ListItem>
                                            <asp:ListItem>Akron</asp:ListItem>
                                            <asp:ListItem>Alabama</asp:ListItem>
                                            <asp:ListItem>Arizona</asp:ListItem>
                                            <asp:ListItem>Arizona State</asp:ListItem>
                                            <asp:ListItem>Arkansas</asp:ListItem>
                                            <asp:ListItem>Arkansas State</asp:ListItem>
                                            <asp:ListItem>Army</asp:ListItem>
                                            <asp:ListItem>Auburn</asp:ListItem>
                                            <asp:ListItem>Ball State</asp:ListItem>
                                            <asp:ListItem>Baylor</asp:ListItem>
                                            <asp:ListItem>Boise State</asp:ListItem>
                                            <asp:ListItem>Boston College</asp:ListItem>
                                            <asp:ListItem>Bowling Green</asp:ListItem>
                                            <asp:ListItem>Buffalo</asp:ListItem>
                                            <asp:ListItem>BYU</asp:ListItem>
                                            <asp:ListItem>California</asp:ListItem>
                                            <asp:ListItem>Central Florida</asp:ListItem>
                                            <asp:ListItem>Central Michigan</asp:ListItem>
                                            <asp:ListItem>Cincinnati</asp:ListItem>
                                            <asp:ListItem>Clemson</asp:ListItem>
                                            <asp:ListItem>Colorado</asp:ListItem>
                                            <asp:ListItem>Colorado State</asp:ListItem>
                                            <asp:ListItem>Connecticut</asp:ListItem>
                                            <asp:ListItem>Duke</asp:ListItem>
                                            <asp:ListItem>East Carolina</asp:ListItem>
                                            <asp:ListItem>Eastern Michigan</asp:ListItem>
                                            <asp:ListItem>Florida</asp:ListItem>
                                            <asp:ListItem>Florida State</asp:ListItem>
                                            <asp:ListItem>Fresno State</asp:ListItem>
                                            <asp:ListItem>Georgia</asp:ListItem>
                                            <asp:ListItem>Georgia Tech</asp:ListItem>
                                            <asp:ListItem>Hawaii</asp:ListItem>
                                            <asp:ListItem>Houston</asp:ListItem>
                                            <asp:ListItem>Idaho</asp:ListItem>
                                            <asp:ListItem>Illinois</asp:ListItem>
                                            <asp:ListItem>Indiana</asp:ListItem>
                                            <asp:ListItem>Iowa</asp:ListItem>
                                            <asp:ListItem>Iowa State</asp:ListItem>
                                            <asp:ListItem>Kansas</asp:ListItem>
                                            <asp:ListItem>Kansas State</asp:ListItem>
                                            <asp:ListItem>Kent State</asp:ListItem>
                                            <asp:ListItem>Kentucky</asp:ListItem>
                                            <asp:ListItem>La Lafayette</asp:ListItem>
                                            <asp:ListItem>Louisiana Monroe</asp:ListItem>
                                            <asp:ListItem>Louisiana Tech</asp:ListItem>
                                            <asp:ListItem>Louisville</asp:ListItem>
                                            <asp:ListItem>LSU</asp:ListItem>
                                            <asp:ListItem>Marshall</asp:ListItem>
                                            <asp:ListItem>Maryland</asp:ListItem>
                                            <asp:ListItem>Memphis</asp:ListItem>
                                            <asp:ListItem>Miami</asp:ListItem>
                                            <asp:ListItem>Miami (OHIO)</asp:ListItem>
                                            <asp:ListItem>Michigan</asp:ListItem>
                                            <asp:ListItem>Michigan State</asp:ListItem>
                                            <asp:ListItem>Middle Tenn. St.</asp:ListItem>
                                            <asp:ListItem>Minnesota</asp:ListItem>
                                            <asp:ListItem>Mississippi</asp:ListItem>
                                            <asp:ListItem>Mississippi St.</asp:ListItem>
                                            <asp:ListItem>Missouri</asp:ListItem>
                                            <asp:ListItem>N.C. State</asp:ListItem>
                                            <asp:ListItem>Navy</asp:ListItem>
                                            <asp:ListItem>Nebraska</asp:ListItem>
                                            <asp:ListItem>Nevada</asp:ListItem>
                                            <asp:ListItem>New Mexico</asp:ListItem>
                                            <asp:ListItem>New Mexico State</asp:ListItem>
                                            <asp:ListItem>North Carolina</asp:ListItem>
                                            <asp:ListItem>North Texas</asp:ListItem>
                                            <asp:ListItem>Northern Illinois</asp:ListItem>
                                            <asp:ListItem>Northwestern</asp:ListItem>
                                            <asp:ListItem>Notre Dame</asp:ListItem>
                                            <asp:ListItem>Ohio</asp:ListItem>
                                            <asp:ListItem>Ohio State</asp:ListItem>
                                            <asp:ListItem>Oklahoma</asp:ListItem>
                                            <asp:ListItem>Oklahoma State</asp:ListItem>
                                            <asp:ListItem>Oregon</asp:ListItem>
                                            <asp:ListItem>Oregon State</asp:ListItem>
                                            <asp:ListItem>Penn State</asp:ListItem>
                                            <asp:ListItem>Pittsburgh</asp:ListItem>
                                            <asp:ListItem>Purdue</asp:ListItem>
                                            <asp:ListItem>Rice</asp:ListItem>
                                            <asp:ListItem>Rutgers</asp:ListItem>
                                            <asp:ListItem>San Diego State</asp:ListItem>
                                            <asp:ListItem>San Jose State</asp:ListItem>
                                            <asp:ListItem>SMU</asp:ListItem>
                                            <asp:ListItem>South Carolina</asp:ListItem>
                                            <asp:ListItem>South Florida</asp:ListItem>
                                            <asp:ListItem>Southern Miss</asp:ListItem>
                                            <asp:ListItem>Stanford</asp:ListItem>
                                            <asp:ListItem>Syracuse</asp:ListItem>
                                            <asp:ListItem>TCU</asp:ListItem>
                                            <asp:ListItem>Temple</asp:ListItem>
                                            <asp:ListItem>Tennessee</asp:ListItem>
                                            <asp:ListItem>Texas</asp:ListItem>
                                            <asp:ListItem>Texas AM</asp:ListItem>
                                            <asp:ListItem>Texas Tech</asp:ListItem>
                                            <asp:ListItem>Toledo</asp:ListItem>
                                            <asp:ListItem>Troy</asp:ListItem>
                                            <asp:ListItem>Tulane</asp:ListItem>
                                            <asp:ListItem>Tulsa</asp:ListItem>
                                            <asp:ListItem>UAB</asp:ListItem>
                                            <asp:ListItem>UCLA</asp:ListItem>
                                            <asp:ListItem>UNLV</asp:ListItem>
                                            <asp:ListItem>USC</asp:ListItem>
                                            <asp:ListItem>Utah</asp:ListItem>
                                            <asp:ListItem>Utah State</asp:ListItem>
                                            <asp:ListItem>UTEP</asp:ListItem>
                                            <asp:ListItem>Vanderbilt</asp:ListItem>
                                            <asp:ListItem>Virginia</asp:ListItem>
                                            <asp:ListItem>Virginia Tech</asp:ListItem>
                                            <asp:ListItem>Wake Forest</asp:ListItem>
                                            <asp:ListItem>Washington</asp:ListItem>
                                            <asp:ListItem>Washington State</asp:ListItem>
                                            <asp:ListItem>West Virginia</asp:ListItem>
                                            <asp:ListItem>Western Michigan</asp:ListItem>
                                            <asp:ListItem>Wisconsin</asp:ListItem>
                                            <asp:ListItem>Wyoming</asp:ListItem>
                                            <asp:ListItem></asp:ListItem>
                                            <asp:ListItem>Div I-AA</asp:ListItem>
                                            <asp:ListItem>Alabama AM</asp:ListItem>
                                            <asp:ListItem>Alabama State</asp:ListItem>
                                            <asp:ListItem>Albany</asp:ListItem>
                                            <asp:ListItem>Alcorn State</asp:ListItem>
                                            <asp:ListItem>Appalachian St.</asp:ListItem>
                                            <asp:ListItem>Ark Pine Bluff</asp:ListItem>
                                            <asp:ListItem>Austin Peay</asp:ListItem>
                                            <asp:ListItem>Bethune Cookman</asp:ListItem>
                                            <asp:ListItem>Brown</asp:ListItem>
                                            <asp:ListItem>Bucknell</asp:ListItem>
                                            <asp:ListItem>Butler</asp:ListItem>
                                            <asp:ListItem>Cal Poly</asp:ListItem>
                                            <asp:ListItem>Central Conn.</asp:ListItem>
                                            <asp:ListItem>Char. Southern</asp:ListItem>
                                            <asp:ListItem>Coastal Carolina</asp:ListItem>
                                            <asp:ListItem>Colgate</asp:ListItem>
                                            <asp:ListItem>Columbia</asp:ListItem>
                                            <asp:ListItem>Cornell</asp:ListItem>
                                            <asp:ListItem>Dartmouth</asp:ListItem>
                                            <asp:ListItem>Davidson</asp:ListItem>
                                            <asp:ListItem>Dayton</asp:ListItem>
                                            <asp:ListItem>Delaware</asp:ListItem>
                                            <asp:ListItem>Delaware State</asp:ListItem>
                                            <asp:ListItem>Drake</asp:ListItem>
                                            <asp:ListItem>Duquesne</asp:ListItem>
                                            <asp:ListItem>Eastern Illinois</asp:ListItem>
                                            <asp:ListItem>Eastern Kentucky</asp:ListItem>
                                            <asp:ListItem>Eastern Wash.</asp:ListItem>
                                            <asp:ListItem>Elon University</asp:ListItem>
                                            <asp:ListItem>Fla Atlantic</asp:ListItem>
                                            <asp:ListItem>Florida AM</asp:ListItem>
                                            <asp:ListItem>Florida Intl</asp:ListItem>
                                            <asp:ListItem>Fordham</asp:ListItem>
                                            <asp:ListItem>Furman</asp:ListItem>
                                            <asp:ListItem>Gardner Webb</asp:ListItem>
                                            <asp:ListItem>Georgetown</asp:ListItem>
                                            <asp:ListItem>Georgia Southern</asp:ListItem>
                                            <asp:ListItem>Grambling</asp:ListItem>
                                            <asp:ListItem>Hampton</asp:ListItem>
                                            <asp:ListItem>Harvard</asp:ListItem>
                                            <asp:ListItem>Hofstra</asp:ListItem>
                                            <asp:ListItem>Holy Cross</asp:ListItem>
                                            <asp:ListItem>Howard</asp:ListItem>
                                            <asp:ListItem>Idaho State</asp:ListItem>
                                            <asp:ListItem>Illinois State</asp:ListItem>
                                            <asp:ListItem>Indiana State</asp:ListItem>
                                            <asp:ListItem>Iona</asp:ListItem>
                                            <asp:ListItem>Jackson State</asp:ListItem>
                                            <asp:ListItem>Jacksonville</asp:ListItem>
                                            <asp:ListItem>Jacksonville St.</asp:ListItem>
                                            <asp:ListItem>James Madison</asp:ListItem>
                                            <asp:ListItem>La Salle</asp:ListItem>
                                            <asp:ListItem>Lafayette</asp:ListItem>
                                            <asp:ListItem>Lehigh</asp:ListItem>
                                            <asp:ListItem>Liberty</asp:ListItem>
                                            <asp:ListItem>Maine</asp:ListItem>
                                            <asp:ListItem>Marist</asp:ListItem>
                                            <asp:ListItem>Massachusetts</asp:ListItem>
                                            <asp:ListItem>McNeese State</asp:ListItem>
                                            <asp:ListItem>Miss. Valley St.</asp:ListItem>
                                            <asp:ListItem>Monmouth (N.J.)</asp:ListItem>
                                            <asp:ListItem>Montana</asp:ListItem>
                                            <asp:ListItem>Montana State</asp:ListItem>
                                            <asp:ListItem>Morehead State</asp:ListItem>
                                            <asp:ListItem>Morgan State</asp:ListItem>
                                            <asp:ListItem>Murray State</asp:ListItem>
                                            <asp:ListItem>N. Carolina AT</asp:ListItem>
                                            <asp:ListItem>New Hampshire</asp:ListItem>
                                            <asp:ListItem>Nicholls State</asp:ListItem>
                                            <asp:ListItem>Norfolk State</asp:ListItem>
                                            <asp:ListItem>North Dakota St</asp:ListItem>
                                            <asp:ListItem>Northeastern</asp:ListItem>
                                            <asp:ListItem>Northern Arizona</asp:ListItem>
                                            <asp:ListItem>Northern Colorado</asp:ListItem>
                                            <asp:ListItem>Northern Iowa</asp:ListItem>
                                            <asp:ListItem>Northwestern St.</asp:ListItem>
                                            <asp:ListItem>Pennsylvania</asp:ListItem>
                                            <asp:ListItem>Portland State</asp:ListItem>
                                            <asp:ListItem>Prairie View</asp:ListItem>
                                            <asp:ListItem>Princeton</asp:ListItem>
                                            <asp:ListItem>Rhode Island</asp:ListItem>
                                            <asp:ListItem>Richmond</asp:ListItem>
                                            <asp:ListItem>Robert Morris</asp:ListItem>
                                            <asp:ListItem>Sacramento State</asp:ListItem>
                                            <asp:ListItem>Sacred Heart</asp:ListItem>
                                            <asp:ListItem>Sam Houston St.</asp:ListItem>
                                            <asp:ListItem>Samford</asp:ListItem>
                                            <asp:ListItem>San Diego</asp:ListItem>
                                            <asp:ListItem>Savannah State</asp:ListItem>
                                            <asp:ListItem>SE Louisiana</asp:ListItem>
                                            <asp:ListItem>SE Missouri State</asp:ListItem>
                                            <asp:ListItem>SMS</asp:ListItem>
                                            <asp:ListItem>South Carolina St</asp:ListItem>
                                            <asp:ListItem>South Dakota St</asp:ListItem>
                                            <asp:ListItem>Southern</asp:ListItem>
                                            <asp:ListItem>Southern Illinois</asp:ListItem>
                                            <asp:ListItem>Southern Utah</asp:ListItem>
                                            <asp:ListItem>St. Francis (PA)</asp:ListItem>
                                            <asp:ListItem>St. Peter's</asp:ListItem>
                                            <asp:ListItem>Stephen F. Austin</asp:ListItem>
                                            <asp:ListItem>Stony Brook</asp:ListItem>
                                            <asp:ListItem>Tenn. Martin</asp:ListItem>
                                            <asp:ListItem>Tennessee State</asp:ListItem>
                                            <asp:ListItem>Tennessee Tech</asp:ListItem>
                                            <asp:ListItem>Texas Southern</asp:ListItem>
                                            <asp:ListItem>Texas State</asp:ListItem>
                                            <asp:ListItem>The Citadel</asp:ListItem>
 
Code:
   <asp:ListItem>Towson</asp:ListItem>
                                            <asp:ListItem>UC Davis</asp:ListItem>
                                            <asp:ListItem>UT-Chattanooga</asp:ListItem>
                                            <asp:ListItem>Valparaiso</asp:ListItem>
                                            <asp:ListItem>Villanova</asp:ListItem>
                                            <asp:ListItem>VMI</asp:ListItem>
                                            <asp:ListItem>Wagner</asp:ListItem>
                                            <asp:ListItem>Weber State</asp:ListItem>
                                            <asp:ListItem>Western Carolina</asp:ListItem>
                                            <asp:ListItem>Western Illinois</asp:ListItem>
                                            <asp:ListItem>Western Kentucky</asp:ListItem>
                                            <asp:ListItem>William &amp; Mary</asp:ListItem>
                                            <asp:ListItem>Wofford</asp:ListItem>
                                            <asp:ListItem>Yale</asp:ListItem>
                                            <asp:ListItem>Youngstown State</asp:ListItem>
                                            <asp:ListItem></asp:ListItem>
                                            <asp:ListItem>Div II, Div III, NAIA, JuCo</asp:ListItem>
                                        </asp:DropDownList>


          
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        What is your head coach's name?</td>
                                    <td align="left">
                                    <asp:TextBox ID="player_HeadCoach" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        What is your position coach's name?</td>
                                    <td align="left">
                                    <asp:TextBox ID="playerPositionCoach" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <p>
                                            Does your school offer any help
                                        </p>
                                        <p>
                                            in selecting an agent?</p>
                                    </td>
                                    <td align="left">
                                    <asp:RadioButtonList ID="rbselectagent" runat="server">
                                    <asp:ListItem Text="Yes" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="No"></asp:ListItem>
                                    </asp:RadioButtonList>
                                    <%--<input type ="radio" name="value3" id = "Radio4" runat ="server" value="1"  />
                                        
                                        Yes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                         <input type ="radio" name="value3" id = "Radio5" runat ="server" value="2"  />
                                        
                                        No--%>
                                    </td>
                                </tr>
                                <tr align="left">
                                    <td height="20" colspan="2" valign="middle">
                                        <p>
                                            <strong>If yes please list the contactperson below</strong></p>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        Contact Person
                                    </td>
                                    <td align="left">
                                    <asp:TextBox ID="player_SchoolHelpAgentName" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        Phone</td>
                                    <td align="left">
                                    <asp:TextBox ID="player_SchoolHelpAgentPhone" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" align="left" valign="middle">
                            <strong class="orange">5. Football Information</strong></td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                            <table width="100%" cellpadding="0" cellspacing="5">
                                <tr>
                                    <td width="44%" align="left" valign="top">
                                        Do you have any All-Star Game invitions?
                                    </td>
                                    <td width="56%">
                                        <p><asp:CheckBoxList ID="checkboxstargame" runat="server">
                                        <asp:ListItem Selected="True">Senior Bowl</asp:ListItem>
                                        <asp:ListItem>East/West Shrine Game</asp:ListItem>
                                        <asp:ListItem>Hula Bowl</asp:ListItem>
                                         <asp:ListItem>Gridiron Classic</asp:ListItem>
                                          <asp:ListItem>Blue-Gray</asp:ListItem>
                                           
                                        </asp:CheckBoxList>
                                            <%--<input name="player_AllstarSeniorBowl" id="player_AllstarSeniorBowl" value="Yes"
                                                type="checkbox" runat="server" />
                                            Senior Bowl<br />
                                            <input name="player_AllstarEastWest" id="player_AllstarEastWest" value="Yes" type="checkbox" runat="server" />
                                            East/West Shrine Game<br />
                                            <input name="player_AllstarHula" id="player_AllstarHula" value="Yes" type="checkbox" runat="server" />
                                            Hula Bowl<br />
                                            <input name="player_AllstarGridiron" id="player_AllstarGridiron" value="Yes" type="checkbox" runat="server" />
                                            Gridiron Classic<br />
                                            <input name="player_AllstarBlueGray" id="player_AllstarBlueGray" value="Yes" type="checkbox" runat="server" />
                                            Blue-Gray--%>
                                        </p>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Position(s)</td>
                                    <td>
                                     <asp:TextBox ID="player_Pos" runat="server" Width="150px"></asp:TextBox>
                                       </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Age</td>
                                    <td>
                                     <asp:TextBox ID="player_Age" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Height</td>
                                    <td>
                                    <asp:TextBox ID="player_Height" runat="server" Width="150px"></asp:TextBox>
                                       </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Weight</td>
                                    <td>
                                    <asp:TextBox ID="player_Weight" runat="server" Width="150px"></asp:TextBox>
                                       </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Bench Press - 225 Reps
                                    </td>
                                    <td>
                                    <asp:TextBox ID="player_Bench" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Vertical Jump
                                    </td>
                                    <td>
                                    <asp:TextBox ID="player_VertJump" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Broad Jump
                                    </td>
                                    <td>
                                    <asp:TextBox ID="player_BroadJump" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        40 Yard Dash (select grass or turf)</td>
                                    <td>
                                    <asp:RadioButtonList ID="RD40yard" runat="server">
                                    <asp:ListItem Selected="True">Turf</asp:ListItem>
                                    <asp:ListItem>Grass</asp:ListItem>
                                    </asp:RadioButtonList>
                                        <%--<input type ="radio" name="value2" id = "Radio2" runat ="server" value="1"  />
                                        Turf
                                        <input type ="radio" name="value2" id = "Radio3" runat ="server" value="2"  />
                                        Grass<br />--%>
                                          <asp:TextBox ID="player_40Yd" runat="server" Width="150px"></asp:TextBox>
                                        
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        Expected Draft Round
                                    </td>
                                    <td>
                                    <asp:DropDownList ID="player_ExpectedRound" runat="server">
                                    
                                   
                                        
                                            <asp:ListItem value="0" Selected="true">Please Select</asp:ListItem>
                                            <asp:ListItem value="1">1st Round</asp:ListItem>
                                            <asp:ListItem value="2">2nd Round</asp:ListItem>
                                            <asp:ListItem value="3">3rd Round</asp:ListItem>
                                            <asp:ListItem value="4">4th Round</asp:ListItem>
                                            <asp:ListItem value="5">5th Round</asp:ListItem>
                                            <asp:ListItem value="6">6th Round</asp:ListItem>
                                            <asp:ListItem value="7">7th Round</asp:ListItem>
                                            <asp:ListItem value="UFA">Undrafted</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <p>
                                            Have you met with any other
                                        </p>
                                        <p>
                                            certifed NFLPA agents?
                                            <br />
                                            If so please list
                                        </p>
                                    </td>
                                    <td>
                                    <asp:RadioButtonList ID="RDlist" runat="server">
                                    <asp:ListItem>No</asp:ListItem>
                                    <asp:ListItem Selected="True">Yes</asp:ListItem></asp:RadioButtonList>
                                     <%--<input type ="radio" name="value1" id = "rd1" runat ="server" value="1"  />No &nbsp;&nbsp;
                                     <input type ="radio" name="value1" id = "Radio1" runat ="server" value="2" />Yes<br />--%>
                                        
                                        <asp:TextBox ID="player_MetAgents" runat="server"></asp:TextBox>
                                        
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                    <asp:Button ID="subBtn" runat="server" Text="Submit To DEC Management" OnClick="Submit_Click" />
                                       </td>
                                </tr>
                                <tr><td> <asp:Label ID="Label1" runat="server"></asp:Label><br /></td></tr>
                               
                              
                            
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="float: left; width: 24px; height: 34px;">
                &nbsp;</div>
        </div>
        <div style="overflow: hidden; width: 636px;">
            <div style="float: left; width: 24px; height: 34px;">
                <img alt="" width="24px" height="34px" src="images/box_corner3.gif" />
            </div>
            <div style="float: left; width: 588px; height: 34px;">
            </div>
            <div style="float: left; width: 24px; height: 34px;">
                <img width="24px" height="34px" alt="" src="images/box_corner4.gif" />
            </div>
        </div>
    </div>
</asp:Content>
 
heres the questionnaire.aspx.cs
Code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Questionnaire : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Submit_Click(object sender, EventArgs e)
    {
        SendMail("info@DecAgent.com", "erik@decagent.com", "Dec Management");
		//SendMail("info@DecAgent.com", "erik@decagent.com", "Dec Management");
    }

    private void SendMail(string from, string to, string subject)
    {
        string body = "<html><boby><table align='center' width='650px' border='0' cellspacing='0' cellpadding='0'><tr><td height='40' align='left' valign='middle'><strong class='orange'>1. Personal Information</strong></td></tr>";
        body += "<tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'><tr><td width='247' align='left' valign='middle'>Name</td>";
        body += " <td width='309' align='left' valign='top'>" + txtName.Text + "</td></tr>";
        body += "<tr><td align='left' valign='middle'>Email Address</td>";
        body += "<td align='left' valign='top'>" + txtEmail .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='middle'>Telephone</td>";
        body += "<td align='left' valign='top'>" + txtPlayerPhone .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='middle'>Pager</td>";
        body += " <td align='left' valign='top'>" + txtPlayerPager.Text + "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Cell Phone</td>";
        body += " <td align='left' valign='top'>" + txtPlayerCell .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='middle'>Wife/Girlfriend's Name</td>";
        body += " <td align='left' valign='top'>" + player_WifeGFName .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Children's Name(s)</td>";
        body += "<td align='left' valign='top'>" + player_ChildrenName .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='top'>What are your hobbies?</td>";
        body += "<td align='left' valign='top'>" + player_Hobbies.Text + "</td></tr>";
        body +="<tr align='left' valign='top'><td><p>Do you have any friends or relatives</p><p>playing or working for an NFL team?</p></td>";
        body += " <td align='left' valign='top'>" + txtfriends .Text+ "</td></tr>";
        body +=" </table></td></tr>";
        body +="<tr><td height='40' align='left' valign='middle'><strong class='orange'>2. Parental/Guardian Information</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +=" <tr><td width='247' align='left' valign='middle'>Names</td>";
        body += "<td width='309' align='left' valign='top'>" + txtname_inf .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Address</td>";
        body += " <td align='left' valign='top'>" + txtadd_inf .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Telephone</td>";
        body += "<td align='left' valign='top'>" + txtPhone_inf .Text+ "</td></tr>";
        body +="</table></td></tr>";
        body +=" <tr><td height='40' align='left' valign='middle'><strong class='orange'>3. Other People Helping With Agent Selection</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +=" <tr><td width='247' align='left' valign='middle'>Name of person(s) helping you select an agent</td>";
        body += "<td width='309' align='left' valign='top'>" + txtPlayerName_3 .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>What are their telephone numbers?</td>";
        body += "<td align='left' valign='top'>" + txtPhome_3 .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Address</td>";
        body += " <td align='left' valign='top'>" + txtAdd_3 .Text+ "</td></tr>";
        body +="</table></td></tr>";
        body +="<tr><td height='40' align='left' valign='middle'><strong class='orange'>4. College Information</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +=" <tr><td width='44%' align='left'>School</td>";
        body += "<td width='56%' align='left'>" + ddlSchool.SelectedItem.Text+ "</td></tr>";
        body +="<tr><td align='left'>What is your head coachs name?</td>";
        body += "<td align='left'>" + player_HeadCoach .Text+ "</td></tr>";
        body +="<tr><td align='left'>What is your position coach's name?</td>";
        body += "<td align='left'>" + playerPositionCoach .Text+ "</td></tr>";
        body +="<tr><td align='left'><p>Does your school offer any help</p><p>in selecting an agent?</p></td>";
        body += "<td align='left'>" + rbselectagent .SelectedItem.Text+ "</td></tr>";
        body +=" <tr align='left'><td height='20' colspan='2' valign='middle'><p><strong>If yes please list the contactperson below</strong></p></td></tr>";
        body +="<tr><td align='left'>Contact Person</td>";
        body += " <td align='left'>" + player_SchoolHelpAgentName .Text+ "</td></tr>";
        body +=" <tr><td align='left'>Phone</td>";
        body += " <td align='left'>" + player_SchoolHelpAgentPhone.Text + "</td></tr>";
        body +=" </table></td></tr>";
        body +=" <tr><td height='40' align='left' valign='middle'><strong class='orange'>5. Football Information</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +="<tr><td width='44%' align='left' valign='top'>Do you have any All-Star Game invitions?</td>";
        body += "<td>" + checkboxstargame .SelectedItem.Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Position(s)</td>";
        body += " <td>" + player_Pos .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Age</td>";
        body += "<td>" + player_Age.Text + "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Height</td>";
        body += " <td>" + player_Height .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Weight</td>";
        body += "<td>" + player_Weight.Text + "</td></tr>";
        body +="<tr><td align='left' valign='top'>Bench Press - 225 Reps</td>";
        body += "<td>" + player_Bench .Text+ "</td></tr>";
        body +="  <tr><td align='left' valign='top'>Vertical Jump</td>";
        body += "<td>" + player_VertJump .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='top'>Broad Jump</td>";
        body += "<td>" + player_BroadJump .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='top'>40 Yard Dash (select grass or turf)</td>";
        body += "<td>" + RD40yard .SelectedItem.Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Expected Draft Round</td>";
        body += "<td>" + player_ExpectedRound .SelectedItem.Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'><p>Have you met with any other</p><p>certifed NFLPA agents?<br />If so please list</p></td>";
        body += "<td>" + RDlist .SelectedItem.Text+ "</td></tr>";
        body +="</table></td></tr>";
        body +="</table></body></html>";
   




         try
        {
            string smtpServer = "smtp.decagent.com";//ConfigurationManager.AppSettings.Get("smtpServer");
            string smtpUserName = "user@decagent.com"; //ConfigurationManager.AppSettings.Get("smtpuserName");
            string smtpPassword = "password"; //ConfigurationManager.AppSettings.Get("smtppassword");
            int cdoBasic = 1;
            int cdoSendUsingPort = 2;

            System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
            if (smtpUserName.Length > 0)
            {
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", smtpServer);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 25);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", cdoSendUsingPort);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", cdoBasic);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", smtpUserName);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", smtpPassword);
            }
            msg.To = txtEmail.Text;
            msg.From = from;
            msg.Subject = "Confirmation Mail For DecManagement";
            msg.BodyFormat = System.Web.Mail.MailFormat.Html;
            msg.Body = body;
            System.Web.Mail.SmtpMail.SmtpServer = smtpServer;
            System.Web.Mail.SmtpMail.Send(msg);

            msg.To = to;
            msg.From = from;
            msg.Subject = subject;
            msg.BodyFormat = System.Web.Mail.MailFormat.Html;
            msg.Body = body;
            System.Web.Mail.SmtpMail.SmtpServer = smtpServer;
            System.Web.Mail.SmtpMail.Send(msg);

            txtName.Text = string.Empty;
            txtEmail.Text = string.Empty;
            txtPlayerPhone.Text = string.Empty;
            txtPlayerPager.Text = string.Empty;
            txtPlayerCell.Text = string.Empty;
            player_WifeGFName.Text = string.Empty;
            player_ChildrenName.Text = string.Empty;
            player_Hobbies.Text = string.Empty;
            txtfriends.Text = string.Empty;
            txtname_inf.Text = string.Empty;
            txtadd_inf.Text = string.Empty;
            txtPhone_inf.Text = string.Empty;
            txtPlayerName_3.Text = string.Empty;
            txtPhome_3.Text = string.Empty;
            txtAdd_3.Text = string.Empty;
            player_HeadCoach.Text = string.Empty;
            playerPositionCoach.Text = string.Empty;
            player_SchoolHelpAgentName.Text = string.Empty;
            player_SchoolHelpAgentPhone.Text = string.Empty;
            player_Pos.Text = string.Empty;
            player_Age.Text = string.Empty;
            player_Height.Text = string.Empty;
            player_Weight.Text = string.Empty;
            player_Bench.Text = string.Empty;
            player_VertJump.Text = string.Empty;
            player_BroadJump.Text = string.Empty;
            player_40Yd.Text = string.Empty;
            player_ExpectedRound.Text = string.Empty;
            player_MetAgents.Text = string.Empty;
            Label1.Text = "Mail Send Successfully  ";

    }
    catch (Exception ex)
    {
        Label1.Text = "Error: Mail Delivery Failure";
        // throw ex;
    }


}}


any help would be much appreciated :)
 
heres the questionnaire.aspx.cs
Code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Questionnaire : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Submit_Click(object sender, EventArgs e)
    {
        SendMail("info@DecAgent.com", "erik@decagent.com", "Dec Management");
		//SendMail("info@DecAgent.com", "erik@decagent.com", "Dec Management");
    }

    private void SendMail(string from, string to, string subject)
    {
        string body = "<html><boby><table align='center' width='650px' border='0' cellspacing='0' cellpadding='0'><tr><td height='40' align='left' valign='middle'><strong class='orange'>1. Personal Information</strong></td></tr>";
        body += "<tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'><tr><td width='247' align='left' valign='middle'>Name</td>";
        body += " <td width='309' align='left' valign='top'>" + txtName.Text + "</td></tr>";
        body += "<tr><td align='left' valign='middle'>Email Address</td>";
        body += "<td align='left' valign='top'>" + txtEmail .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='middle'>Telephone</td>";
        body += "<td align='left' valign='top'>" + txtPlayerPhone .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='middle'>Pager</td>";
        body += " <td align='left' valign='top'>" + txtPlayerPager.Text + "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Cell Phone</td>";
        body += " <td align='left' valign='top'>" + txtPlayerCell .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='middle'>Wife/Girlfriend's Name</td>";
        body += " <td align='left' valign='top'>" + player_WifeGFName .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Children's Name(s)</td>";
        body += "<td align='left' valign='top'>" + player_ChildrenName .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='top'>What are your hobbies?</td>";
        body += "<td align='left' valign='top'>" + player_Hobbies.Text + "</td></tr>";
        body +="<tr align='left' valign='top'><td><p>Do you have any friends or relatives</p><p>playing or working for an NFL team?</p></td>";
        body += " <td align='left' valign='top'>" + txtfriends .Text+ "</td></tr>";
        body +=" </table></td></tr>";
        body +="<tr><td height='40' align='left' valign='middle'><strong class='orange'>2. Parental/Guardian Information</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +=" <tr><td width='247' align='left' valign='middle'>Names</td>";
        body += "<td width='309' align='left' valign='top'>" + txtname_inf .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Address</td>";
        body += " <td align='left' valign='top'>" + txtadd_inf .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Telephone</td>";
        body += "<td align='left' valign='top'>" + txtPhone_inf .Text+ "</td></tr>";
        body +="</table></td></tr>";
        body +=" <tr><td height='40' align='left' valign='middle'><strong class='orange'>3. Other People Helping With Agent Selection</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +=" <tr><td width='247' align='left' valign='middle'>Name of person(s) helping you select an agent</td>";
        body += "<td width='309' align='left' valign='top'>" + txtPlayerName_3 .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>What are their telephone numbers?</td>";
        body += "<td align='left' valign='top'>" + txtPhome_3 .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='middle'>Address</td>";
        body += " <td align='left' valign='top'>" + txtAdd_3 .Text+ "</td></tr>";
        body +="</table></td></tr>";
        body +="<tr><td height='40' align='left' valign='middle'><strong class='orange'>4. College Information</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +=" <tr><td width='44%' align='left'>School</td>";
        body += "<td width='56%' align='left'>" + ddlSchool.SelectedItem.Text+ "</td></tr>";
        body +="<tr><td align='left'>What is your head coachs name?</td>";
        body += "<td align='left'>" + player_HeadCoach .Text+ "</td></tr>";
        body +="<tr><td align='left'>What is your position coach's name?</td>";
        body += "<td align='left'>" + playerPositionCoach .Text+ "</td></tr>";
        body +="<tr><td align='left'><p>Does your school offer any help</p><p>in selecting an agent?</p></td>";
        body += "<td align='left'>" + rbselectagent .SelectedItem.Text+ "</td></tr>";
        body +=" <tr align='left'><td height='20' colspan='2' valign='middle'><p><strong>If yes please list the contactperson below</strong></p></td></tr>";
        body +="<tr><td align='left'>Contact Person</td>";
        body += " <td align='left'>" + player_SchoolHelpAgentName .Text+ "</td></tr>";
        body +=" <tr><td align='left'>Phone</td>";
        body += " <td align='left'>" + player_SchoolHelpAgentPhone.Text + "</td></tr>";
        body +=" </table></td></tr>";
        body +=" <tr><td height='40' align='left' valign='middle'><strong class='orange'>5. Football Information</strong></td></tr>";
        body +=" <tr><td align='left' valign='top'><table width='100%' cellpadding='0' cellspacing='5'>";
        body +="<tr><td width='44%' align='left' valign='top'>Do you have any All-Star Game invitions?</td>";
        body += "<td>" + checkboxstargame .SelectedItem.Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Position(s)</td>";
        body += " <td>" + player_Pos .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Age</td>";
        body += "<td>" + player_Age.Text + "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Height</td>";
        body += " <td>" + player_Height .Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Weight</td>";
        body += "<td>" + player_Weight.Text + "</td></tr>";
        body +="<tr><td align='left' valign='top'>Bench Press - 225 Reps</td>";
        body += "<td>" + player_Bench .Text+ "</td></tr>";
        body +="  <tr><td align='left' valign='top'>Vertical Jump</td>";
        body += "<td>" + player_VertJump .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='top'>Broad Jump</td>";
        body += "<td>" + player_BroadJump .Text+ "</td></tr>";
        body +="<tr><td align='left' valign='top'>40 Yard Dash (select grass or turf)</td>";
        body += "<td>" + RD40yard .SelectedItem.Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'>Expected Draft Round</td>";
        body += "<td>" + player_ExpectedRound .SelectedItem.Text+ "</td></tr>";
        body +=" <tr><td align='left' valign='top'><p>Have you met with any other</p><p>certifed NFLPA agents?<br />If so please list</p></td>";
        body += "<td>" + RDlist .SelectedItem.Text+ "</td></tr>";
        body +="</table></td></tr>";
        body +="</table></body></html>";
   




         try
        {
            string smtpServer = "smtp.decagent.com";//ConfigurationManager.AppSettings.Get("smtpServer");
            string smtpUserName = "user@decagent.com"; //ConfigurationManager.AppSettings.Get("smtpuserName");
            string smtpPassword = "password"; //ConfigurationManager.AppSettings.Get("smtppassword");
            int cdoBasic = 1;
            int cdoSendUsingPort = 2;

            System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
            if (smtpUserName.Length > 0)
            {
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", smtpServer);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 25);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", cdoSendUsingPort);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", cdoBasic);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", smtpUserName);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", smtpPassword);
            }
            msg.To = txtEmail.Text;
            msg.From = from;
            msg.Subject = "Confirmation Mail For DecManagement";
            msg.BodyFormat = System.Web.Mail.MailFormat.Html;
            msg.Body = body;
            System.Web.Mail.SmtpMail.SmtpServer = smtpServer;
            System.Web.Mail.SmtpMail.Send(msg);

            msg.To = to;
            msg.From = from;
            msg.Subject = subject;
            msg.BodyFormat = System.Web.Mail.MailFormat.Html;
            msg.Body = body;
            System.Web.Mail.SmtpMail.SmtpServer = smtpServer;
            System.Web.Mail.SmtpMail.Send(msg);

            txtName.Text = string.Empty;
            txtEmail.Text = string.Empty;
            txtPlayerPhone.Text = string.Empty;
            txtPlayerPager.Text = string.Empty;
            txtPlayerCell.Text = string.Empty;
            player_WifeGFName.Text = string.Empty;
            player_ChildrenName.Text = string.Empty;
            player_Hobbies.Text = string.Empty;
            txtfriends.Text = string.Empty;
            txtname_inf.Text = string.Empty;
            txtadd_inf.Text = string.Empty;
            txtPhone_inf.Text = string.Empty;
            txtPlayerName_3.Text = string.Empty;
            txtPhome_3.Text = string.Empty;
            txtAdd_3.Text = string.Empty;
            player_HeadCoach.Text = string.Empty;
            playerPositionCoach.Text = string.Empty;
            player_SchoolHelpAgentName.Text = string.Empty;
            player_SchoolHelpAgentPhone.Text = string.Empty;
            player_Pos.Text = string.Empty;
            player_Age.Text = string.Empty;
            player_Height.Text = string.Empty;
            player_Weight.Text = string.Empty;
            player_Bench.Text = string.Empty;
            player_VertJump.Text = string.Empty;
            player_BroadJump.Text = string.Empty;
            player_40Yd.Text = string.Empty;
            player_ExpectedRound.Text = string.Empty;
            player_MetAgents.Text = string.Empty;
            Label1.Text = "Mail Send Successfully  ";

    }
    catch (Exception ex)
    {
        Label1.Text = "Error: Mail Delivery Failure";
        // throw ex;
    }


}}


any help would be much appreciated :)

just a little help, in the part above he is manually clearing every field...heh...

add this property to each control item: EnableViewState="false", now, less coding, and that part is fixed.


as for the sending part of it, make sure the smtp relay server can forward emails to outside people, some hosts only allow like 200 a day. I use google's free smtp service like this:

Code:
        public bool SendEmail(string FromEmailAddress, string ToEmailAddress, string Subject, string Body, string AttachmentFilePath, string SMTPServer, MailPriority MailPriority)
        {
            try
            {
                // Create a message and set up the recipients.
                MailMessage message = new MailMessage(
                   FromEmailAddress,
                   ToEmailAddress,
                   Subject,
                   Body);

                message.Priority = MailPriority;

                // Smtp configuration
                SmtpClient client = new SmtpClient();
                client.Credentials = new NetworkCredential("account@gmail.com", "mypassword");
                client.Port = 587; //or use 465            
                client.Host = SMTPServer;
                client.EnableSsl = true;
                try
                {
                    client.Send(message);
                }
                catch (SmtpException)
                {
                    //Catch errors...
                }
            }
            catch (Exception ex)
            {
                throw new ApplicationException("Email::SendEmail", ex);
            }
            return true;
        }
    }
 
i'm totally asp lost (first time messing with it at all) so i dunno what manually clearing every field is lol :(
as far as the send, someone suggested i add msg.Bcc = to; to the code and it seems to have made things work
 
Back
Top