1 uuencode file.txt file.txt | mail email@address.com
1 2 mutt -s "This a subject" \ 3 -a Attached_File.txt \ 4 recipient@email.com < Email_Body.txt
With mutt, you can add many attachments (not sure if there is a limit) and you don't have to mess with uuencode and mailx. Attachments are attached as one would expect. This functionality can be wrapped easily in a script that so that you can make use of environment/script variables for the arguments.
You need to create an account or log in to post comments to this site.