First I ran a simple test to see if I could get crontab to send me an email. I created the following line:
MAILTO = [email protected]
1 * * * * /bin/echo "foobar"
This worked as expected and I received an email every 1 minute with "foobar" in the body.
I then fiddled with the file a bit. When I looked for expected emails, however, they did not appear. So I went back and restored the file to:
MAILTO = [email protected]
1 * * * * /bin/echo "foobar"
But the emails are not coming through. What could be going on? Is it possible that gmail (my email is through google apps) is filtering out the emails because they appear to be automatically-generated?
Any ideas? Thanks.