Sending mail with attachment

view story

http://www.unix.com – Hi, I am using Sun solaris OS unix server I am trying to send mail with an attachment using below script Code: cat test.txt;uuencode test.txt test.txt|mailx -s "$subject" someone@somewhere I m getting mails but with no attachment. Hence i manipulate the script as below and i am getting the mail with attachment Code: cat test.txt;uuencode test.txt test.txt|mail  someone@somewhere But my question is why i am not getting attachment with earlier code.Can anyone pls help. (HowTos)