title: Get all POST data and send in email
body: <p>Im trying to use PHP Mail function to send myself an email of all post variables. </p>
  
  <p>So far I have this...</p>
  
  <pre><code>$message = foreach ($_POST as $key =&gt; $value)
  echo "Field ".htmlspecialchars($key)." is ".htmlspecialchars($value)."&lt;br&gt;";
  
  $message = wordwrap($message, 70);
  
  mail('liam@site.co.uk', 'sghting', $message);
  </code></pre>
  
  <p>Only the message being submitted is my last post record, can anybody see where im going wrong?</p>