python script which sends email by
shell function "mail". It runs fine. However, when I put in crontab to run it is unable to send mail to the recipient, rather it sends error message to my address. Is there any issue that crontab cannot send mail running via another script?
Here is my crontab entry:
30 8 * * * /home/akand/./pyscript.py
The pyscript.py has
import os os.system(''' mail -s "Message" ...@gmail.com <<< "Please check ..." ''')
As I mentioned,
pyscript.py runs fine.