1. Install mutt using yum
yum -y install mutt
2. mutt -s "Test mail" -a /tmp/file.tar.gz [email protected] < /tmp/mailmessage.txt
yum -y install mutt
2. mutt -s "Test mail" -a /tmp/file.tar.gz [email protected] < /tmp/mailmessage.txt
- [email protected] - is the recipient.
- /tmp/mailmessage.txt - is the main body of the e-mail (read message from the file "mailmessage.txt").
- -a /tmp/file.tar.gz - is an attachment.
- -s "Test mail" - is a subject line.