I’m using a nice little utility called mutt.
To get this guy installed and you are running CentOS, use:
yum install mutt
To send yourself an email with an attachement and no text:
mutt -a /tmp/BackupFile.tar -s "Your backup" [email protected] < /dev/null
To send the same file but with text try this:
mutt -a /tmp/BackupFile.tar -s "Your backup" [email protected] < /tmp/TextForEmail.txt
This site has some good info on mutt and the mail command.
Leave a Reply