Send mail from command line

Hi All;
I need to send emails from command line in some of my shell scripts.

I tried : mail -s "Subject" member@body.com < testfile
where test file contains body of the mail

This work on my mac computer at work BUT not on my mac laptop.
Does anyone have any ideas why?

Thanks
Walforum

Older UNIX needs 'mailx' to send with '-s subject', and of course the email flow must be configured off the host. You say 'I tried' but not what happened!