title: PHP Mail form does not send
body: <p>I copied the message form and PHP mail from a website. But it doesn't seem to work. It does not send anything or make any reaction. I tried to find the error, but I am not familiar with PHP. I tried editing the $emailFrom =... to $_POST['email']; but that doesn't work either..</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="form-main"&gt;
              &lt;div id="form-div"&gt;
                  &lt;form class="form" id="form1"&gt;
                      &lt;p class="name"&gt;
                          &lt;input name="name" type="text" class="validate[required,custom[onlyLetter],length[0,100]] feedback-input" placeholder="Naam"/&gt;
                      &lt;/p&gt;
                      &lt;p class="email"&gt;
                          &lt;input name="email" type="text" class="validate[required,custom[email]] feedback-input" placeholder="E-mail" /&gt;
                      &lt;/p&gt;
                      &lt;p class="text"&gt;
                          &lt;textarea name="text" class="validate[required,length[6,300]] feedback-input" placeholder="Bericht"&gt;&lt;/textarea&gt;
                      &lt;/p&gt;
                      &lt;div class="submit"&gt;
                          &lt;input type="submit" value="Verstuur" id="button-blue"/&gt;
                      &lt;div class="ease"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>    &lt;?php
  
  include 'functions.php';
  
  if (!empty($_POST)){
  
    $data['success'] = true;
    $_POST  = multiDimensionalArrayMap('cleanEvilTags', $_POST);
    $_POST  = multiDimensionalArrayMap('cleanData', $_POST);
  
    //your email adress 
    $emailTo ="lisa-ederveen@hotmail.com"; //"yourmail@yoursite.com";
  
    //from email adress
    $emailFrom =$_POST['email']; //"contact@yoursite.com";
  
    //email subject
    $emailSubject = "Mail from Porta";
  
    $name = $_POST["name"];
    $email = $_POST["email"];
    $comment = $_POST["comment"];
    if($name == "")
     $data['success'] = false;
  
   if (!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email)) 
     $data['success'] = false;
  
  
   if($comment == "")
     $data['success'] = false;
  
   if($data['success'] == true){
  
    $message = "NAME: $name&lt;br&gt;
    EMAIL: $email&lt;br&gt;
    COMMENT: $comment";
  
  
    $headers = "MIME-Version: 1.0" . "\r\n"; 
    $headers .= "Content-type:text/html; charset=utf-8" . "\r\n"; 
    $headers .= "From: &lt;$emailFrom&gt;" . "\r\n";
    mail($emailTo, $emailSubject, $message, $headers);
  
    $data['success'] = true;
    echo json_encode($data);
  }
  }
  ?&gt;
  </code></pre>