title: My contact form send 4 emails
body: <p>I have a contact form on my asp.net website. When we send a message through the form. It sends 4 emails, 3 of them are blank and 1 contains the original information. I want it to send only one email having the right info.<br>
  <strong>This is the contact form</strong>  </p>
  
  <pre><code>&lt;%@ Control Language="C#" %&gt;
  &lt;div class="styledForm" id="ContactUsForm"&gt;
  &lt;fieldset class="OneColumn"&gt;
  &lt;legend&gt;You can also contact us by submitting the below form :&lt;/legend&gt;
  &lt;div class="FirstRow" onkeypress="return FireDefaultButton(event,SubmitContact);"&gt;
          &lt;label&gt;Contact Name&lt;font color="#ff0000"&gt;*&lt;/font&gt;&lt;/label&gt;
          &lt;input type="text" class="txtBox" name="ContactName" id="ContactName"  /&gt;
      &lt;/div&gt;
      &lt;div class="FirstRow" onkeypress="return FireDefaultButton(event,SubmitContact);"&gt;
          &lt;label&gt;Contact E-mail&lt;font color="#ff0000"&gt;*&lt;/font&gt;&lt;/label&gt;
          &lt;input type="text" class="txtBox" name="ContactEmail" id="ContactEmail"  /&gt;
      &lt;/div&gt;
      &lt;div class="FirstRow"&gt;
          &lt;label style="height:85px"&gt;Message&lt;font color="#ff0000"&gt;*&lt;/font&gt;&lt;/label&gt;
          &lt;textarea class="txtBox" rows="5" cols="30" name="ContactMessage" id="ContactMessage"&gt;   &lt;/textarea&gt;
      &lt;/div&gt;
      &lt;div class="FirstRow"&gt;
          &lt;label&gt;&amp;nbsp;&lt;/label&gt;
          &lt;a href="#" class="MaroonButton AllFiveRounded" title="Submit" onclick="return SubmitContact();"&gt;Send Message&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Here is the SubmitCOntact function</strong></p>
  
  <pre><code>function SubmitContact() {
      ClearValidations();
      $("#ContactName").rules("add", { required: true, messages: { required: "Please enter your Name." } });
      $("#ContactEmail").rules("add", { required: true, email: true, messages: { required: "Please enter your Email Address.", email: "Invalid e-mail address!! Please try user@domain.com." } });
      $("#ContactMessage").rules("add", { required: true, messages: { required: "Please enter your message." } });
      if (FormValidator.form()) {
          SubmitFormInIframe("ContactUsForm", function (data) {
              ShowResult(data, function () {
                  $("#ContactUsForm input, #ContactUsForm textarea").val("");
                  DisableOverlay();
              }, function () {
                  DisableOverlay();
              });
          });
      } else { ShowDialog(Errors, "Error"); }
      return false;
  }
  </code></pre>