Send mail with from on Linux
Send mail from
mailx -r user@domain.local -s "test send mail" user@domain.dist
Send mail if connection root
echo "Connection shell root:" `date` `who`| mail -s "`hostname` - connection shell root" destMail
Send mail if command fail
commande.sh || mail -s "command failed X" destMail
Comments
Post a Comment