title: ASP.net send email from HTML form
body: <p>Below is my HTML form.</p>
  
  <pre><code>&lt;div class="form-area"&gt;  
  &lt;form role="form" method="post" action="" id="registerform"&gt;
  &lt;br style="clear:both"&gt;
  &lt;h3 style="margin-bottom: 25px; text-align: center;"&gt;Registration Form&lt;/h3&gt;
  &lt;div class="form-inline"&gt;
  &lt;label class="radio"&gt;
  &lt;input value="property" type="radio" name="whatneed" checked=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Property Loan
  &lt;/label&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;label class="radio"&gt;
  &lt;input value="automobile" type="radio" name="whatneed"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Automobile Loan
  &lt;/label&gt;
  &lt;/div&gt;
  &lt;br&gt;
  &lt;div class="form-group"&gt;
  &lt;div class="input-group"&gt;
  &lt;input type="text" class="form-control" placeholder="Your Budget" name="budget" required&gt;
  &lt;span class="input-group-addon"&gt;.00&lt;/span&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;input type="text" class="form-control" name="whenneed" placeholder="When are you planing to buy" required&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;input type="text" class="form-control" name="location" placeholder="Location" required&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;input type="text" class="form-control" id="name" name="name" placeholder="Name" required&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;textarea class="form-control" type="textarea" name="address" placeholder="Your Address" maxlength="140" rows="7"&gt;&lt;/textarea&gt;                  
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;input type="text" class="form-control" id="mobile" name="mobile" placeholder="Mobile Number" required&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;input type="text" class="form-control" name="landline" placeholder="Landline Number" required&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
  &lt;input type="email" class="form-control" id="email" name="email" placeholder="Email" required&gt;
  &lt;/div&gt;
     &lt;button type="submit" id="submit" name="submit" class="btn btn-primary pull-right"&gt;Submit Form&lt;/button&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to email this content when user clicks the submit button. i saved this file as .html. I'm new to asp.net. Please help me how to send email. From email id will be a fixed one (Ex: test@domainname.com).</p>