cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

os:linux:command:mail



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
}








os/linux/command/mail.txt ยท Last modified: 2022/01/24 by admin

Page Tools