Install Mail Command – CentOS 7
Overview
Minimal install on most Linux operating system, mail command doesn’t work, it is necessary to install mail packages.
Applies To
CentOS 7, RHEL 7.x
Install package
yum install -y mailx
Install Mail Command – CentOS 7
Test Sending Email
echo "Test E-Mail" | mail -s "Test Mail" [email protected]
Verify Email Sent
tail /var/log/maillog