How to send an email from the command line (with attachments)

All on one line:
echo "Message body goes here" | mutt -s "The Subject Line" 
-a /path/to/file.tar.gz recipient@mail.server.com