With the mail
program on Fedora 12, you can sent attachments like this:
mail -a /path/to/attachment -s "some subject" someone@somewhere < body.txt
If you want to attach each individual file in some directory (an alternative is to tar/zip everything), you can use something like this:
for FILE in $(find $DIR -type f); do
ATTACHMENT_ARGS="$ATTACHMENT_ARGS -a $FILE"
if [ -n "$ATTACHMENT_ARGS" ]; then
mail $ATTACHMENT_ARGS -s "some subject" someone@somewhere < /dev/null