FiveFeet

Send a local file via email

$ echo "see attached file" | mail -a filename -s "subject" email@address

Or try this

$ cat filename | uuencode filename | mail -s "subject" This email address is being protected from spambots. You need JavaScript enabled to view it.

$ mutt -a syslogs.tar.gz This email address is being protected from spambots. You need JavaScript enabled to view it. < /dev/null

$ echo | mutt -a syslogs.tar.gz This email address is being protected from spambots. You need JavaScript enabled to view it.

$ cat filename | mail -s "Email subject" This email address is being protected from spambots. You need JavaScript enabled to view it.