To send e-mails from command line with attachments using mutt.
Set the from address with EMAIL=
-s – Subject
-a – attachment file
-c – for CC
-b – for BCC
create a text file (eg: /tmp/testmessage) , with the body of the message.
EMAIL="foo@bar" mutt -s "Subject" -a test.doc foo1@bar -c foo2@bar < /tmp/testmessage