title: HTML form PHP post to email
body: <p>I'd like to make a form that posts data to my email.</p>
  
  <p>I found the following code and it works fine except I didn't get any email from the form.</p>
  
  <p>Here is the Php File</p>
  
  <pre><code>&lt;?php
  
      // Contact subject
      $name ="$name"; 
  
      // Details
      $address="$address";
      $id="$id";
      $passport="$passport";
      $issue="$issue";
      $mula="$mula";
      $tamat="$tamat";
      $tel="$tel";
      $select_dd="$select_dd";
      $date="$date";
      $textarea="$textarea";
      $file="$file";
  
  
  
      // Mail of sender
       $email="$email"; 
  
      // From 
      $header="from: $name &lt;$mail&gt;";
  
      // Enter your email address
  
      $to ='rodhiahazzahra@gmail.com';
      $send_contact=mail($to,$subject,$message,$header);
  
      // Check, if message sent to your email 
      // display message "We've recived your information"
      if($send_contact){
      echo "We've recived your contact information";
      }
      else {
      echo "ERROR";
      }?&gt;
  </code></pre>