echo 'The message body' | mutt -a file_to_attach -s 'The Subject' -- recip@example.com
Computer Tips - How can I mail an attachment from the command line?
Date: 2013aug12
OS: Linux
Q. How can I mail an attachment from the command line?
A. Use mutt. Like this: