This requires the 'mutt' mail-client: mutt user@mail.com < bodymail.txt -s "Your docs" -a attach1.jpg attach2.pdf bodymail.txt: file containing body mail message -s: mail subject -a: attachment(s)