Table of Contents

Linux Commands Cheat Sheet

mail - How to use mail Command in Linux



man mail



Shell Examples

send_mail(){
cat << EOM | mailx -s "test" -S smtp=smtp://x.x.x.x:25 -S from=`hostname`@example.com to@sample.com

Hi

This is test mail

`date`

EOM
}