in reply to can't get mailx to send from within a script

As suggested elsewhere 'mailx' expects some data to send.

An example; `echo "test message" | /bin/mailx -s "hello" john@work.com` should probably work.

Check out the command under a shell prompt and make sure you copy it EXACTLY into the "backticks"; if you have to hit additional return keys or anything similar then it won't work as you first tried it.

HTH

Dave R

Nothing succeeds like a budgie with no teeth.
  • Comment on Re: can't get mailx to send from within a script