Send mail from linux

Hi,

Could any one get me suggested how to send a mail from a linux server to any external user?

I tried the following :

$ mail abc@xyz.com
Subject: test
Hi,

This is a test mail.
.
Cc: def@xyz.com

But I haven't recived any mail at abc@xyz.com and def@xyz.com

Kindly help on this as I require this to integrate in my script.

Thanks-
Yogi

have you searched here?

Also some of the later parts of this thread might give you hints: