you should have a working mail server in that server. check the syntax of mailx command using its man page. On Sep 28, 2012 5:54 PM, "Balaji" <abalajimca@xxxxxxxxx> wrote: > > Hi friends > > > I want to configure mail x in my linux server i tried below code but i > didn't get any mails , pls letme know any other commands > > > 23481 echo | mailx -s "test" "abalajimca@xxxxxxxxx" -s (Test Mail From > Linux) > > sh: syntax error near unexpected token `(' > > 23481 echo | mailx -s "test" "abalajimca@xxxxxxxxx <abalajimca@xxxxxxxxx>" > -s "Test Mail From Linux" > > 23481 send-mail: invalid option -- 's' > > send-mail: invalid option -- 's' > > send-mail: fatal: usage: send-mail [options] > > 23481 > > 23481 > > 23481 > > 23481 > > 23481 > > 23481 echo "$?" > > 0 > > 23481 echo | mailx -s "test" "devenits2@xxxxxxxxx" > > 23481 > > 23481 > > 23481 echo "$?" > > 0 > > 23481 > > > -- > > Thanks ! Balaji.A > >