views:

123

answers:

2

Hello

I want to run a php script every morning, the script would send a mail.

But the mail I get from cron always contains an error message.

Can anybody help?

+10  A: 

Yes. I'm sure someone here can.

Pi
+1  A: 

Post your script, crontab line and error. You might want to try piping your script output to sendmail instead of sending mail through PHP.

goharma
Why was this downvoted? It's the only constructive reply. +1 to even it out.
Pekka
goharma
TFM for crontab says that if you modify the MAILTO variable you will get output to a different address, obviating the need to invoke /bin/mail.Considering that he's getting an error, I'm going to go out on a limb and say that $PATH needs to be corrected. Again, this is noted in TFM.
Pi