Hi, I try to run an automated email in php wich send an email to the admin using crontab: 00 12 1-7 php /path/to/script/send_email_admin.php > /dev/null On the command line this is working fine but with crontab I receive this error : /bin/sh: php: command not found Can any one help me with this pb.
Thanks
the location of the php binary isnt defined in the PATH env variable, so just use the full path like 00 12 1-7 /usr/bin/php /path/to/script/send_email_admin.php > /dev/null
of course make sure that /usr/bin/php is the right path.