title: Correct syntax for PHP Cron Job in CPanel
body: <p>I wanted to send a simple email in php that can be triggered by CRON jobs in CPanel..</p>
  
  <pre><code>php /home/username/public_html/test/email.php
  </code></pre>
  
  <p>I am using the above script to run the script and send an email to me but no luck...</p>
  
  <pre><code>&lt;?php
  $to = "email@email.com";
  $subject = "I'm CRON from CPanel";
  $message = "Just wanna say that your cron is working";
  $from = "someonelse@example.com";
  $headers = "From:" . $from;
  mail($to,$subject,$message,$headers);
  echo "Mail Sent.";
  ?&gt; 
  </code></pre>
  
  <p>I am using the above PHP script as well..</p>
  
  <p>Why is it that it is not sending email?</p>