The mail command can be used under Linux or UNIX bash, ksh, csh shell to send an email. To send a message to one or more address, mail can be invoked with arguments which are …
Mail content text is /tmp/message.txt mail -s 'Server Status Report' [email protected] -c [email protected] < /tmp/message.txt Sending mail with attachment # !/bin/bash tar -zcf /tmp/backup.tar.gz /home/david/files echo | mutt -a /tmp/backup.tar.gz -s “daily backup of data” …