Cron jobs not sending notification emails

bluecup

Member
May 30, 2014
15
2
53
cPanel Access Level
Website Owner
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:
Code:
/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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.