Use
mutt command
in following format to specify subject, message body and attachment to send mail from command line. # echo "" |
mutt -s "subject" -i body.txt -a attachment.txt
[email protected] -s used to specify subject of mail. -i used to specify file containing message body. -a used to specify attachment file.