unix - "mailx" -r command not working -
i using below command mail 1 user attachment placed content
mailx -r "sendermail@abc.com" -s "testing" "recievermailid@xyz.com" < emailmessagemail.txt
and getting below error message..
mailx: invalid option -- r usage: mail [-iinv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... [-- sendmail-options ...] mail [-iinnv] -f [name] mail [-iinnv] [-u user]
can please advise.. in advance
just install
sudo apt-get install heirloom-mailx
bsd-mailx doesn't have option. in order check use command:
dpkg -s $(readlink -e $(which mailx))
Comments
Post a Comment