Browse - 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:

echo 'The message body' | mutt -a file_to_attach -s 'The Subject' -- recip@example.com