title: PHP mail form - email header
body: <p>I am using a PHP mail form on my site. I receive mail just fine but the headers I am getting are in the form <code>a7849972@srv29.000webhost.com</code>, and the same for reply address. How can I change my code to get the person's name in header? I am using the following code:</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['submit'])) {
     $to = 'chander_info@yahoo.com' ;     //put your email address on which you want to      receive the information
     $subject = 'Message - Contact Form Coast Med Spa';   //set the subject of email.
     $headers  = 'MIME-Version: 1.0' . "\r\n";
     $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
     $mailheader = "From: ".$_POST["FirstName"]."\r\n"; 
     $mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
     $message = "&lt;table&gt;
             &lt;tr&gt;&lt;td&gt;Title&lt;/td&gt;&lt;td&gt;".$_POST['Title']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;First Name&lt;/td&gt;&lt;td&gt;".$_POST['FirstName']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;Last Name&lt;/td&gt;&lt;td&gt;".$_POST['LastName']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;E-Mail&lt;/td&gt;&lt;td&gt;".$_POST['Email']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;Phone Number&lt;/td&gt;&lt;td&gt;".$_POST['HomePhone']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;Comments&lt;/td&gt;&lt;td&gt;".$_POST['CAT_Custom_869']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;Contact Method&lt;/td&gt;&lt;td&gt;".$_POST['CAT_Custom_868']."&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;Subscribe to: eNewsletter&lt;/td&gt;     &lt;td&gt;".$_POST['CampaignList_41798']."&lt;/td&gt;&lt;/tr&gt;
             &lt;/table&gt;" ;
     mail($to, $subject, $message, $headers, $mailheader);
     header('Location: http://coastlasercenter.com/html/message-contact.html');
  echo "Your message has been received";
  }
  ?&gt;
  </code></pre>