How to send mail with multiple files attached?

Hi,

I would like to send a mail with multiples files attached.

Until now i was doing a "find" and then a "tar" of the text files.
As I need to be able to read them on a mobile device such as Blackberry for instance, i would like to send them in one single mail, but without taring them.

is there a inteligent way to do it? (i have found some script telling to do as many uuencode.... as files, but i have 20 files to send).

Thanks a lot for your help,

Pierrito

Please state what Operating System and Shell you are using and your preferred mail transmission program.
Can we assume that the email attachments are basic format text files?
Please post your script which sends one file successfully in a format which can be read on your Blackberry.

Try the below in sunOS. Angle bracket <<>> texts needs to placed with proper values.

 
cd <<your path here>>
SUBJECT="TEST Multiple file attachment"
TO_LIST="<<here your all To mail list>>"
CC_LIST="<<here your all CC mail list>>"
(
for AttFile in `ls -1`
do
        uuencode $AttFile $AttFile
done
) | /usr/bin/mailx -s "$SUBJECT" -c "$CC_LIST" "$TO_LIST"