======================================= Email using mailx ======================================= # body echo hello world | mailx -s test someone@somewhere.com cat body.txt | mailx -s test someone@somewhere.com --------------------------------------- # body with an attachment ( cat body.txt; uuencode file.foo file.foo ) | mailx -s "body and attachment" someone@somewhere.com --------------------------------------- # body with multiple attachments ( cat body.txt; for i in *.conf *.foo do uuencode $i $i done ) | mailx -s "body and multiple attachments" someone@somewhere.com ---------------------------------------