Mailx command not working in the script

when i am using Mailx command from AIX box, i am getting the following errors :

uuencode: not found.
mailx: not found.

but when i executed the mailx command as shown below it worked

cat /etc/hosts | mailx -v -s "test email" user@server.com

It works fine in the production server.

Is there any property setting that i need to change in the other server?

Please advise.

Thanks

I think you don't have those commands at your box.
You have to install it in your local box.

It work's in production doesn't mean that it should work on your local also.

Did you check the PATH environment variable in your script and in your interactive login session?