title: How to send email from a HTML contact-us form
body: <p>I'm new to Yahoo small business web hosting. I created a HTML contact-us form as shown below -</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;Untitled Form&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css" href="view.css" media="all"&gt;
  &lt;script type="text/javascript" src="view.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body id="main_body" &gt;
  
      &lt;img id="top" src="top.png" alt=""&gt;
      &lt;div id="form_container"&gt;
  
          &lt;h1&gt;&lt;a&gt;Untitled Form&lt;/a&gt;&lt;/h1&gt;
          &lt;form id="form_774248" class="appnitro"  method="post" action=""&gt;
                      &lt;div class="form_description"&gt;
              &lt;h2&gt;Untitled Form&lt;/h2&gt;
              &lt;p&gt;This is your form description. Click here to edit.&lt;/p&gt;
          &lt;/div&gt;                      
              &lt;ul &gt;
  
                      &lt;li id="li_1" &gt;
          &lt;label class="description" for="element_1"&gt;Name &lt;/label&gt;
          &lt;span&gt;
              &lt;input id="element_1_1" name= "element_1_1" class="element text" maxlength="255" size="8" value=""/&gt;
              &lt;label&gt;First&lt;/label&gt;
          &lt;/span&gt;
          &lt;span&gt;
              &lt;input id="element_1_2" name= "element_1_2" class="element text" maxlength="255" size="14" value=""/&gt;
              &lt;label&gt;Last&lt;/label&gt;
          &lt;/span&gt; 
          &lt;/li&gt;       &lt;li id="li_2" &gt;
          &lt;label class="description" for="element_2"&gt;Phone &lt;/label&gt;
          &lt;span&gt;
              &lt;input id="element_2_1" name="element_2_1" class="element text" size="3" maxlength="3" value="" type="text"&gt; -
              &lt;label for="element_2_1"&gt;(###)&lt;/label&gt;
          &lt;/span&gt;
          &lt;span&gt;
              &lt;input id="element_2_2" name="element_2_2" class="element text" size="3" maxlength="3" value="" type="text"&gt; -
              &lt;label for="element_2_2"&gt;###&lt;/label&gt;
          &lt;/span&gt;
          &lt;span&gt;
              &lt;input id="element_2_3" name="element_2_3" class="element text" size="4" maxlength="4" value="" type="text"&gt;
              &lt;label for="element_2_3"&gt;####&lt;/label&gt;
          &lt;/span&gt;
  
          &lt;/li&gt;       &lt;li id="li_3" &gt;
          &lt;label class="description" for="element_3"&gt;Address &lt;/label&gt;
  
          &lt;div&gt;
              &lt;input id="element_3_1" name="element_3_1" class="element text large" value="" type="text"&gt;
              &lt;label for="element_3_1"&gt;Street Address&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;div&gt;
              &lt;input id="element_3_2" name="element_3_2" class="element text large" value="" type="text"&gt;
              &lt;label for="element_3_2"&gt;Address Line 2&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;div class="left"&gt;
              &lt;input id="element_3_3" name="element_3_3" class="element text medium" value="" type="text"&gt;
              &lt;label for="element_3_3"&gt;City&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;div class="right"&gt;
              &lt;input id="element_3_4" name="element_3_4" class="element text medium" value="" type="text"&gt;
              &lt;label for="element_3_4"&gt;State / Province / Region&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;div class="left"&gt;
              &lt;input id="element_3_5" name="element_3_5" class="element text medium" maxlength="15" value="" type="text"&gt;
              &lt;label for="element_3_5"&gt;Postal / Zip Code&lt;/label&gt;
          &lt;/div&gt;
  
          &lt;div class="right"&gt;
              &lt;select class="element select medium" id="element_3_6" name="element_3_6"&gt; 
          &lt;label for="element_3_6"&gt;Country&lt;/label&gt;
      &lt;/div&gt; 
          &lt;/li&gt;
  
                      &lt;li class="buttons"&gt;
                  &lt;input type="hidden" name="form_id" value="774248" /&gt;
  
                  &lt;input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /&gt;
          &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/form&gt; 
          &lt;div id="footer"&gt;
              Generated by &lt;a href="http://www.phpform.org"&gt;pForm&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;img id="bottom" src="bottom.png" alt=""&gt;
      &lt;/body&gt;
  &lt;/html&gt;  
  </code></pre>
  
  <p>I tried <code>&lt;form action="MAILTO:test@test.com" method="post" enctype="text/plain"&gt;</code>, but nothing worked.<br>
  Now, I want to send an email to <code>test@test.com</code> which contains all the details of the fields in the website. Should I use PHP or can I do it directly. How can I do this.</p>