The script checks the files and sends the report function mail (). If you run through the browser - everything is OK. When launched via cron, the script does everything (job records are added to the script log file), but mail is not sent. What could be the problem?
mail()- write the simplest script from this one function and see how it will work. - Ivan Bolnikh