mail command not found
Whenever any message says while hitting the command as Command Not Found , it means the package is not installed or script is not present.
For the mail command not found issue install the mailx.
Use the below given command for mailx installation.
For Redhat/CentOS =>
yum install mailx
For Debian or Ubuntu =>
sudo apt-get install mailutils