======================================= 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 image.jpg image.jpg ) | mailx -s "body and attachment" someone@somewhere.com --------------------------------------- # body with multiple attachments ( cat body.txt; for i in image*.jpg do uuencode $i $i done ) | mailx -s "body and multiple attachments" someone@somewhere.com ---------------------------------------