title: How to create a email feedback form for my existing website?
body: <p>Users fill the feedback form and send mails to us.
  I wnat to ue php <code>mail()</code> function.
  please help how to use the php script? what are the things i need for that?</p>
  
  <p>I am new to this, can you please help me?</p>
  
  <p>My form code:</p>
  
  <pre><code>&lt;form name="contact" method="post" action="sendmail.php" enctype="multipart/form-data" onsubmit="return checkForm(this);"&gt;
  &lt;table style="width:100%;height:40px;"&gt;&lt;tr&gt;&lt;td align="right"&gt;&lt;span id="error" style="color:#FF0000;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  &lt;label&gt;&lt;span&gt;First Name:&lt;/span&gt;&lt;input type="text" name="fname" id="fname"/&gt;&lt;/label&gt;
  &lt;label&gt;&lt;span&gt;Last Name:&lt;/span&gt;&lt;input type="text" name="lname"/&gt;&lt;/label&gt;
  &lt;label&gt;&lt;span&gt;Email Address:&lt;/span&gt;&lt;input type="text" name="email"/&gt;&lt;/label&gt;
  &lt;label&gt;&lt;span&gt;Phone No. :&lt;/span&gt;&lt;input type="text" name="phone"/&gt;&lt;/label&gt;
  &lt;label class="last"&gt;&lt;span&gt;Feedback :&lt;/span&gt;&lt;textarea name="message" cols="" rows=""&gt;&lt;/textarea&gt;&lt;/label&gt;
  &lt;label class="btnsub"&gt;&lt;input name="" type="submit" title="submit" class="submission"/&gt;&lt;/label&gt;
  &lt;/form&gt;
  </code></pre>