attach 2 files using mailx

if test.dat is the file

cat test.dat|uuencode test.dat|mailx -s "subject" mailid

can be used for attaching test.dat

how can i attach more than one file to a mail using mailx

Please refer to the FAQ section where in perderabo has a tool to suit this purpose.

(uuencode INPUTFILE $FILE_STRING.out ;uuencode INPUTFILE $FILE_STRING.err )|mailx -s "SUBJECT" $EMAIL_ID