send email with attachment from shell script
#install mailutils
$ sudo apt-get install mailutils
#comment to send a mail
$ echo "Message Body Here" | mail -s "Subject Here" [email protected] -A backup.zip
or
$ echo "Message Body Here" | mailx -s "Subject Here" -a backup.zip [email protected]
or
$ echo "Message Body Here" | mailx -s "Subject Here" -a backup.log -a test.txt [email protected]