Im trying to learn how to send mail with PHP. I have the following that redirects (so my code is being read) but the mail isnt being sent, can anybody see any obvious syntax mistakes? I cant understand whats wrong?
$aaa = $_POST['recipient-name'];
$bbb = $_POST['address-line'];
$ccc = $_POST['town-name'];
$ddd = $_POST['county-name'];
$eee = $_POST['postcode-name'];
$fff = $_POST['mesage-blob'];
// The message
$message = $aaa . ' and ' . $bbb . ' and ' . $ccc . ' and ' . $ddd . ' and ' . $eee . ' and ' . $fff;
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70, "\r\n");
// Send
mail('hello@site.co.uk', 'subjeeect', $message);
header('Location: /thankyou.php');