Sending Mail Thru Unix Script

What are all the things that should be configured in order to send a mail from Unix box.

An eg. program of sending a mail will help me a lot!!!!!!

Thanks in advance

-Om

uuencode <file_location> <filename_without_location> | mailx -s "email title" recipients

thats how to send mail if that helps

Try searching the forums before asking the question - there have been many responses to such questions before.

And the basic mail command would be
mailx -s"subject" receipent1 <CR>
text
Ctrl-D

or
mailx -s"subject" receipent1,receipent2@otherdomain.com < /dir/sometextfile

or nbvcxzdz's example.

Thanks a ton for your scripts. Please help me to know the things that shud be configured in unix box, in order to send a mail.

Thnx in advance

-Om

$uname -a
HP-UX hpprogrs B.11.11 U 9000/800 388930385

Thanks in advance for your help

-Om