Cron jobs not sending notification emails
In the cPanel, I have set up cron jobs and also added a new cron email to receive notifications but I haven't been receiving any notification after the cron job has been run.
I have set up a cron job like below:
The cron job runs fine. I am just not receiving the email notification. Is it due to redirection to /dev/null?
/usr/bin/wget -q -O /dev/null "http://www.mytest.net/jobs/jobs?id=7784a49273ceb07a7"The cron job runs fine. I am just not receiving the email notification. Is it due to redirection to /dev/null?
-
Hello :) Do you have root access to this server? If so, you can browse to /var/spool/cron/$username to ensure the "MAILTO" entry at the top of the file uses the correct contact email address. Also, you should remove the /dev/null entry from the cron job so the output is not discarded. Thank you. 0
Please sign in to leave a comment.
Comments
1 comment