mail / mailx

mail / mailx#

Send / read mail from the shell.

$ echo "body" | mail -s "subject" you@example.com
$ mail -s "report" you@example.com < report.txt
$ mailx -s "alert" ops@example.com < /var/log/syslog