send mail

 

Centos Install

yum install mailx

Usage

# send e-mail to w@x.y.z

echo "" | mail -s"RAID status" -a /tmp/raid_status.txt w@x.y.z