avwebmaster
New member
- Joined
- Feb 19, 2016
- Messages
- 1
- Programming Experience
- 1-3
I'm a newbie and inherited the VB.net code.
The account registration below is supposed to send an email to the visitor upon their completion of the form, but they're not receiving it.
What subprogram is being called that would be sending the email? Or is it called earlier?
The account registration below is supposed to send an email to the visitor upon their completion of the form, but they're not receiving it.
What subprogram is being called that would be sending the email? Or is it called earlier?
VB.NET:
<%@ Page Title="Account " Language="vb" AutoEventWireup="false" MasterPageFile="~/main.Master" CodeBehind="account-registration.aspx.vb" Inherits="LASAAv1_2.UI.account_registration" %>
<%@ Register Assembly="Infragistics4.Web.v11.2, Version=11.2.20112.2025, Culture=neutral"
Namespace="Infragistics.Web.UI.EditorControls" TagPrefix="ig" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHEAD" runat="server">
<link href="css/input.css" rel="stylesheet" type="text/css" />
<script src="js/input.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlacePageLocation" runat="server">
<asp:Literal ID="litPageContentTitle" runat="server"></asp:Literal>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlacePageSection" runat="server">
<asp:Literal ID="litPageContentSubTitle" runat="server"></asp:Literal>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="contentPlaceMain" runat="server">
<dd:cmsContent ID="cmsContent1" runat="server" PageID="account_registration" />
<asp:ScriptManager ID="sm" runat="server" />
<div class="wizard-feedback" id="wizardFeedback" runat="server">
</div>
<asp:PlaceHolder ID="placeFeedback" runat="server"></asp:PlaceHolder>
<asp:Wizard ID="wiz" CssClass="wiz" runat="server">
<StepStyle VerticalAlign="Top" CssClass="wizStep" />
<NavigationButtonStyle CssClass="wizButton" />
<SideBarStyle CssClass="hidden" />
<WizardSteps>
<asp:WizardStep ID="stepUsername" runat="server" StepType="Start" Title="Username">
<h3>Username</h3>
<fieldset>
<div class="field">
<label for="<%= txtUsername.ClientID() %>" class="f-left">
Username:
<span>What do you want to be called on this site?</span>
</label>
<div class="f-right add-tip" title="Your username must be between 4 and 20 characters long consisting of only letters, numbers, dashes and underscores. No spaces. Capitalization does not matter.">
<asp:TextBox ID="txtUsername" runat="server" Columns="30" MaxLength="20" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtUsername" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtUsername" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>"
ValidationExpression="^[a-zA-Z0-9\-_]{4,20}$" ></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtEmail.ClientID() %>" class="f-left">
Email Address:
</label>
<div class="f-right add-tip" title="Please enter your primary email address.">
<asp:TextBox ID="txtEmail" runat="server" Columns="40" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
ControlToValidate="txtEmail" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="regEmail" runat="server"
ControlToValidate="txtEmail" Display="Dynamic"
ErrorMessage="<div class='error'>* invalid email address</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtPassword.ClientID() %>" class="f-left">
Password:
<span>Something secret!</span>
</label>
<div class="f-right add-tip" title="Your password must be between 4 and 20 characters long consisting of only letters, numbers, dashes and underscores. No spaces. <strong>Passwords ARE case-sensitive.</strong>">
<asp:TextBox ID="txtPassword" runat="server" Columns="30" MaxLength="20" TextMode="Password" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtPassword" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
ControlToValidate="txtPassword" Display="dynamic"
ErrorMessage="<div class='error'>* invalid password</div>"
ValidationExpression="^[a-zA-Z0-9\-_]{4,20}$" ></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtPasswordConfirm.ClientID() %>" class="f-left">
Confirm Password:
<span>Make sure you typed it correctly</span>
</label>
<div class="f-right add-tip" title="Please re-enter your password so we can be sure you typed it correctly.">
<asp:TextBox ID="txtPasswordConfirm" runat="server" Columns="30" MaxLength="20" TextMode="Password" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtPasswordConfirm" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
ControlToValidate="txtPasswordConfirm" Display="dynamic"
ErrorMessage="<div class='error'>* invalid password</div>"
ValidationExpression="^[a-zA-Z0-9\-_]{4,20}$" ></asp:RegularExpressionValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToValidate="txtPasswordConfirm" ControlToCompare="txtPassword"
Operator="Equal" Display="dynamic"
ErrorMessage="<div class='error'>* does not match</div>"></asp:CompareValidator>
</div>
</div>
</fieldset>
</asp:WizardStep>
<asp:WizardStep ID="stepAssociation" runat="server" StepType="Auto" Title="Association">
<h3>Association</h3>
<fieldset>
<asp:HiddenField ID="hidCategory" runat="server" />
<div>
<h4 class="add-tip" title="<p>Many of LASAA organized and sponsored events are open to other law enforcement agencies and some events are open to the public</p><p>Select your association with LASAA</p>">Where do you work?</h4>
<div>
<asp:RadioButtonList ID="radioAssocList" runat="server" AutoPostBack="true"
CssClass="radio-list">
<asp:ListItem Text="I am a L.A. Sheriff" Value="lasd" Selected="True"></asp:ListItem>
<asp:ListItem Text="I am with another law enforcement agency" Value="law"></asp:ListItem>
<asp:ListItem Text="I am with the general public" Value="public"></asp:ListItem>
</asp:RadioButtonList>
</div>
</div>
<div class="field" id="divEmployeeID" runat="server">
<label for="<%= txtEmployeeID.ClientID() %>" class="f-left">
<asp:PlaceHolder ID="placeEmployeeID" runat="server"></asp:PlaceHolder>
</label>
<div class="f-right add-tip" id="tipEmployeeID" runat="server" title="">
<asp:TextBox ID="txtEmployeeID" runat="server" Columns="20" MaxLength="15" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="txtEmployeeID" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
<div class="field" id="divAdditionalInfo" runat="server">
<label for="<%= txtAdditionalInfo.ClientID() %>" class="f-left">
<asp:PlaceHolder ID="placeAdditionalInfo" runat="server"></asp:PlaceHolder>
</label>
<div class="f-right add-tip" id="tipAdditionalInfo" runat="server" title="">
<asp:TextBox ID="txtAdditionalInfo" runat="server" Columns="30" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="txtAdditionalInfo" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
<div class="field" id="divEmployeeDetail" runat="server">
<label for="<%= txtEmployeeDetail.ClientID() %>" class="f-left">
<asp:PlaceHolder ID="placeEmployeeDetail" runat="server"></asp:PlaceHolder>
</label>
<div class="f-right add-tip" id="tipEmployeeDetail" runat="server" title="">
<asp:TextBox ID="txtEmployeeDetail" runat="server" Columns="30" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtEmployeeDetail" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
</fieldset>
</asp:WizardStep>
<asp:WizardStep ID="stepDetails" runat="server" StepType="Auto" Title="Details">
<h3>Details</h3>
<fieldset>
<div class="field">
<label for="<%= txtFirstName.ClientID() %>" class="f-left">
First Name:
</label>
<div class="f-right add-tip" title="Please enter your first name.">
<asp:TextBox ID="txtFirstName" runat="server" Columns="40" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtFirstName" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
<div class="field">
<label for="<%= txtLastName.ClientID() %>" class="f-left">
Last Name:
</label>
<div class="f-right add-tip" title="Please enter your last name.">
<asp:TextBox ID="txtLastName" runat="server" Columns="40" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
ControlToValidate="txtLastName" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
<div class="field">
<label for="<%= dropGender.ClientID() %>" class="f-left">
Gender:
</label>
<div class="f-right add-tip" title="Please select your gender. This will help ensure you are properly placed when registering for events.">
<asp:DropDownList ID="dropGender" runat="server" CssClass="selectbox required">
<asp:ListItem Text="Male" Value="m" Selected="True"></asp:ListItem>
<asp:ListItem Text="Female" Value="f"></asp:ListItem>
</asp:DropDownList>
</div>
</div>
<div class="field">
<label for="<%= txtDOB.ClientID() %>" class="f-left">
Date of Birth:
</label>
<div class="f-right add-tip" title="Please enter you date of birth. This will help ensure you are properly placed when registering for events.">
<ig:WebDateTimeEditor ID="txtDOB" runat="server" CssClass="textbox required">
</ig:WebDateTimeEditor>
</div>
</div>
<div class="field">
<label for="<%= txtEmailPrimary.ClientID() %>" class="f-left">
Email Address:
<span>primary</span>
</label>
<div class="f-right add-tip" title="Please enter your primary email address.">
<asp:TextBox ID="txtEmailPrimary" runat="server" Columns="40" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
ControlToValidate="txtEmailPrimary" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="regEmailPrimary" runat="server"
ControlToValidate="txtEmailPrimary" Display="Dynamic"
ErrorMessage="<div class='error'>* invalid email address</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtEmailSecondary.ClientID() %>" class="f-left">
Email Address:
<span>alternate</span>
</label>
<div class="f-right add-tip" title="If you have more than one email address, please enter your alternate or secondary email address.">
<asp:TextBox ID="txtEmailSecondary" runat="server" Columns="40" MaxLength="50" CssClass="textbox"></asp:TextBox>
<asp:RegularExpressionValidator ID="regEmailSecondary" runat="server"
ControlToValidate="txtEmailSecondary" Display="Dynamic"
ErrorMessage="<div class='error'>* invalid email address</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtPhonePrimary.ClientID() %>" class="f-left">
Primary Phone:
<span>123-456-7890</span>
</label>
<div class="f-right add-tip" title="Please enter your primary phone number.">
<asp:TextBox ID="txtPhonePrimary" runat="server" Columns="20" MaxLength="12" CssClass="textbox"></asp:TextBox>
<asp:RegularExpressionValidator ID="regPhonePrimary" runat="server"
ControlToValidate="txtPhonePrimary" Display="Dynamic"
ErrorMessage="<div class='error'>* format as 123-456-7890</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtPhoneSecondary.ClientID() %>" class="f-left">
Alternate Phone:
<span>123-456-7890</span>
</label>
<div class="f-right add-tip" title="If you have more than one phone number, please enter your alternate phone number.">
<asp:TextBox ID="txtPhoneSecondary" runat="server" Columns="20" MaxLength="12" CssClass="textbox"></asp:TextBox>
<asp:RegularExpressionValidator ID="regPhoneSecondary" runat="server"
ControlToValidate="txtPhoneSecondary" Display="Dynamic"
ErrorMessage="<div class='error'>* format as 123-456-7890</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtAddress.ClientID() %>" class="f-left">
Address:
</label>
<div class="f-right add-tip" title="Please enter your mailing address. For example: 123 Main St.">
<asp:TextBox ID="txtAddress" runat="server" Columns="40" MaxLength="50" CssClass="textbox"></asp:TextBox>
</div>
</div>
<div class="field">
<label for="<%= txtCity.ClientID() %>" class="f-left">
City:
</label>
<div class="f-right add-tip" title="Please enter your city. For example: Los Angeles">
<asp:TextBox ID="txtCity" runat="server" Columns="40" MaxLength="50" CssClass="textbox"></asp:TextBox>
</div>
</div>
<div class="field">
<label for="<%= txtState.ClientID() %>" class="f-left">
State:
</label>
<div class="f-right add-tip" title="Please select your state.">
<asp:TextBox ID="txtState" runat="server" Columns="4" MaxLength="2" CssClass="textbox"></asp:TextBox>
<asp:RegularExpressionValidator ID="regState" runat="server"
ControlToValidate="txtState" Display="Dynamic"
ErrorMessage="<div class='error'>* invalid state</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
<div class="field">
<label for="<%= txtZip.ClientID() %>" class="f-left">
Zip:
</label>
<div class="f-right add-tip" title="Please select your five digit zip code.">
<asp:TextBox ID="txtZip" runat="server" Columns="10" MaxLength="5" CssClass="textbox"></asp:TextBox>
<asp:RegularExpressionValidator ID="regZip" runat="server"
ControlToValidate="txtZip" Display="Dynamic"
ErrorMessage="<div class='error'>* invalid zip code</div>"
ValidationExpression=""></asp:RegularExpressionValidator>
</div>
</div>
</fieldset>
</asp:WizardStep>
<asp:WizardStep ID="stepSecurity" runat="server" StepType="Auto" Title="Security">
<h3>Security Information</h3>
<p>If you ever forget your password, you can ask to have it reset. But to prevent others from resetting your password without your permission, we require you to provide a "security question and answer". Below, please enter a question (like "What is my dog's name?") and an answer. You can see examples of some security questions by putting your mouse over the red question mark below.</p>
<fieldset>
<div class="field">
<label for="<%= txtSecurityQuestion.ClientID() %>" class="f-left">
Question:
</label>
<div class="f-right add-tip" title="<p>Examples of security questions</p><ul style='font-style:italic'><li>What is your mother's madien name?</li><li>What city were you born?</li><li>Where did you go to grammer school?</li><li>What is your mother-in-law's first name?</li>">
<asp:TextBox ID="txtSecurityQuestion" runat="server" Columns="40" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server"
ControlToValidate="txtSecurityQuestion" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
<div class="field">
<label for="<%= txtSecurityAnswer.ClientID() %>" class="f-left">
Answer:
</label>
<div class="f-right">
<asp:TextBox ID="txtSecurityAnswer" runat="server" Columns="40" MaxLength="50" CssClass="textbox required"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
ControlToValidate="txtSecurityAnswer" Display="dynamic"
ErrorMessage="<div class='error'>* required</div>" ></asp:RequiredFieldValidator>
</div>
</div>
</fieldset>
</asp:WizardStep>
<asp:WizardStep ID="stepFinish" runat="server" StepType="Finish" Title="Finish">
<h3>Finish</h3>
<asp:PlaceHolder ID="placeFinish" runat="server"></asp:PlaceHolder>
</asp:WizardStep>
<asp:WizardStep ID="stepComplete" runat="server" StepType="Complete" Title="Complete">
<h3 id="completeTitle" runat="server">Complete</h3>
<div id="completeInstructions" runat="server">
<p>Your site account has been created, but before you can start
registering for LASAA events, you will need to verify your
email address.
</p>
<p>
We have sent an email to <%=txtEmail.Text%> that includes a link
that will activate your account. It may take up to 20 minutes for this
email to be delivered — depending upon your email service.
</p>
<p>
If you do not get this email, first check that the email did not get
blocked by any SPAM filter. If you still did not get the email message,
please contact our <a href="contact.aspx">site administrator</a> for help.
</p>
</div>
<asp:PlaceHolder ID="placeComplete" runat="server"></asp:PlaceHolder>
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
<dd:cmsContent ID="cmsContentBottom" runat="server" PageID="acct_reg_bottom" />
</asp:Content>