Hi Guys
Ive got a small script to send an email as part of a larger script, i run the cron using
php -q /home/xxxxxxxx/public_html/crontest.php
with no errors however i dont get the email or it doesnt appear to be sent, can anyone advise please?
<?php
$noreply = "replyto@mydomain.com";
//////////////// Send the Email ////////////////////////
$to = "recipient@whatever.com";
$subject = "Email Subject";
$message = " Test Message";
$headers = "From: $noreply \r\n" .
"Reply-To: $email \r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>