How to send a mail in unix--Please read the description

Hi frnds,

I want to send 3 csv files as attachement in unix server how do i do this.

Following is the steps which i need to follow:

1.Shell script sets the environment variables

2.Shell script calls a C++ executable

NOTE:This executable will generate 3 csv files

3.After the executable has completed running shell script detects this and sends out a mail with these 3 files as attachement and

also in the mail i need to write some content .

I tried with mailx but there were some issues in attaching and writing the content in mail

Please reply asap.If possible send the script which does things in similar fashion.

Thanks in advance.This is quite urgent

I suggest you do a search for "uuencode" on this site.

You should be able to find the answer in the "Honor Code" agreement you signed or that is readable in the student handbook.