title: How to secure a simple PHP script that sends emails?
body: <p>In a simple contact form, the HTML form triggers a Php script : </p>
  
  <pre><code>&lt;form method="post" action="email.php"&gt;.....&lt;/form&gt;
  </code></pre>
  
  <p>This email.php sends me an email : </p>
  
  <pre><code>&lt;?php
      $mess=$_POST['name']. "\r\n" .$_POST['site']. "\r\n" .$_POST['email']. "\r\n" .$_POST['meta']. "\r\n" .$_POST['message'];
      mail('myemail@gmail.com', 'Subject', $mess);
  ?&gt;
  </code></pre>
  
  <p>The HTML is using jQuery validate plugin, but nothing like this on the Php side.</p>
  
  <p>A Security expert told me <strong>how insanely unsecure this php script was</strong>. </p>
  
  <p>What can I do to enhance security ?</p>