Tuesday, 28 January 2020

sendmail: command not found)

i am not able to receive mail from my schedule job. when i check crontab log i find the below error.

 sendmail: command not found

So, Linux run crontab jobs with minimal environment variable settings. sendmail command located under /usr/sbin
so if you include PATH=/usr/sbin:$PATH is included in your script, issue will be fixed.

1 comment: