<?php
$headers = 'From: abc@abc.x10hosting.com' . "\r\n" .
'Reply-To: abc@abc.x10hosting.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$dt = date('l jS \of F Y h:i:s A');
echo $dt ;
$sent = mail( 'abc@gmail.com' , 'Subject: PHP Cron/ABC' , "A cron job from ABC using PHP. /n ... $dt", $headers ) ;
if( sent ){
echo "Sent .. ";
} else {
echo "Not sent ... )";
}
?>
/usr/bin/php /home/abc/public_html/mycronjob.php >>/home/abc/public_html/logthecron.txt 2>&1