Email from Cron Job

*/20 * * * * php -q /home/user/script.php | mail -s "Email Subject" you@yourdomain.com

Sends an email when Cron runs.

Leave a Reply

Your email address will not be published.