Issued is like this one and I put comments under it:
https://stackoverflow.com/questions/42488101/python-script-not-executed-from-cron/72339239#72339239
The following is helpful but I haven’t tested it yet:
Cronjobs run in a minimal environment, so you can’t even assume that $PATH is set correctly. The script is probably failing to find the sendmail executable. Set $PATH explicitly in the crontab to something like this, or specify the full path to sendmail in the script.PATH=/usr/local/sbin:/usr/sbin:/s