send mail using crontab

I'm having troubles using the mail command in a script which is run by a cron job. The script can be run manually and the mail is delivered, howvever if I run the script via cron, the mail doesn't hit the queue at all.

The script runs via root's crontab and I have tried putting explicit pathnames into the commands but still nothing. I've also added the environment variable declaration with MAIL=/var/mail/root and that hasn't worked either.

Is there anything I'm missing?

[500 byte] By [keith_salter] at [2007-11-26 9:41:18]
# 1
What mail command do you use? 7/M.
mAbrante at 2007-7-7 0:39:36 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
I was using mail. However I then tried using mailx (plus made a few other minor changes) and it now seems to be working via cron.Thanks for teh reply.
keith_salter at 2007-7-7 0:39:36 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...