title: PHP contact form is not sending email.
body: <p>I honestly can't find out what is wrong with the code. Could someone please help? I just want it to send the input to my email. And yes, it an email associated with my host.</p>
  
  <p>The PHP:</p>
  
  <pre><code>&lt;?php
  
  if (isset($_POST['submit'])) { .  
  
    $name = $_POST['name'];   
    $mailFrom = $_POST['mail'];   
    $message = $_POST['message'];   
  
    $mailTo = "my@email.com";   
    $headers = "De: " .$mailfrom;   
    $txt = "Você recebeu um email de ".$name.".\n\n".$message;   
  
    mail($mailTo, $subject, $txt, $headers);
    header("Location: index.php?mailsend");
  
  }
  </code></pre>
  
  <p>The HTML: </p>
  
  <pre><code>        &lt;form id="contact" action="contactform.php" method="post"&gt;
  
              &lt;h3&gt;Deixe a sua mensagem.&lt;/h3&gt;
  
              &lt;input placeholder="Seu Nome" name="name" type="text" tabindex="1" required autofocus oninvalid="this.setCustomValidity('Favor digitar nome válido.')" oninput="setCustomValidity('')"&gt;
  
              &lt;input placeholder="Seu E-Mail" name="mail" type="email" tabindex="2" required oninvalid="this.setCustomValidity('Favor digitar Email válido.')" oninput="setCustomValidity('')"&gt;
  
              &lt;textarea placeholder="Digite sua mensagem aqui..." tabindex="5" name="message" required oninvalid="this.setCustomValidity('Favor digitar mensagem válida.')" oninput="setCustomValidity('')"&gt;&lt;/textarea&gt;
  
              &lt;button name="submit" type="submit" id="contact-submit" data-submit="...Sending"&gt;ENVIAR&lt;/button&gt;
  
          &lt;/form&gt;
  </code></pre>
  
  <p>Yeah it's a mess, sorry about that.</p>