This is a pretty simple thing to do, once you’ve figured it out. You attach files using the following syntax:
uuencode filename1 filename2|mail user@domain.name
This will uuencode the file names, then pipe the output to the mail command, and mail to the user.



Comments
How do you attach 2 files ?
:0)
Thanks for posting this solution!.
uuencode f1 f1 > f1.uu
uuencode f2 f2 > f2.uu
echo “mail body” > mail.body
cat mail.body f1.uu f2.uu | mail -s “test e-mail” you.e-mail@address.com