Problem with multiple excel attachments using mailx

I have written the following code send multiple attachments using mailx

(uuencode file1 file1; uuencode file2 file2; uuencode file3 file3;) | mailx -s MultipleAttachments -r Sysadmin abc@xyz.com

The attachments are coming properly if the file1,2,3 are either pdf, text, doc. But if these files are excel, then only file1 is coming properly while the rest of the 2 files fills up the email body with un-decoded text. (have attached the actual email with the post)

Can someone tell me why iam facing this strange issue. Thanks in advance.

Ram.

I believe the problem has to do with piping, but not entirely sure.

Here's something you could try, this is from one of my live scripts.:

The above code works except for excel files. For ms excel files the mail comes as junk from second file onwards. not sure if this is a problem with uuencode.
thanks,
ram.