mail command attach file code example
Example: linux send attachment from command line
#install mutt sudo apt-get install mutt
mutt -s "the subject" -a myattachment.zip -- [email protected] <<< "some message"
#install mutt sudo apt-get install mutt
mutt -s "the subject" -a myattachment.zip -- [email protected] <<< "some message"