I can't see the error in my code - the if statement echoes 'no' but all the variables are correct
$to = 'mail@mail.com';
$subject = $job.' - '.fetchtitle();
$message = 'Name: '.$_POST['fname'].' '. $_POST['surname'].'<p>
Address: '. $_POST['address'].', '. $_POST['city'].', '. $_POST['postcode'].'<p>
Phone: '. $_POST['phone'].'<p>
Email: '. $_POST['email'].'<p>
Cover Letter: '. $_POST['covletter'];
mail($to, $subject, $message);
if(mail($to, $subject, $message))
echo 'Sent!';
else echo 'no';