Friday, February 17, 2012

How to Install Bash Mail Command on CentOS 6 / RHEL / Fedora

SkyHi @ Friday, February 17, 2012
Installing Bash Mail Command on CentOS, RHEL or Fedora

How to install the bash mail command on CentOS, RHEL or Fedora, this is handy for sending mail from the command line :-
$ cat /some/file | mail youraddress@yourdomain.com
If you don’t have the mail command installed you will get the following error:
$ -bash: mail: command not found 
To install the bash mail program on CentOS, RHEL or Fedora type the following:
$  yum install mailx
Note on RHEL system you will require a Redhat Network (RHN) Self-Support contract to apply updates via YUM.

That's All and now Enjoy the Bash Mail Command on your CentOS / RHEL / Fedora Desktops!!

REFERENCES
http://ashu-geek.blogspot.com/2011/12/how-to-install-bash-mail-command-on.html