[CentOS] how to send mail from console

m.roth at 5-cent.us m.roth at 5-cent.us
Fri Jan 15 17:42:11 UTC 2010

> Jussi Hirvi wrote:
>> Here is what I use:
>> mail -s "My email subject" me at domain.com <$myfile
>> On some (older?) systems the command is email instead of mail. Check
>> 	man mail
> mail is the standard unix command.
> Has been as long as I can remember, and I believe it is also part of LSB
> but I'm not positive on that.

I agree. It was standard on everything I was on when I first got into *Nix
in '91.

        mark "Sun 3(*not* Solaris), Irix, HP/UX...."

More information about the CentOS mailing list