unix mail body with attachment

How can I send mail with attachment in HP-UX
I am able to send mail with specific body,but not successful while attaching a file.
I am using the below command however it stuck :

uuencode test.txt |mailx -s "Subject" <e-mail id>

uuencode file.txt file.txt | mailx -s "subject" me@my.com

PLEASE: next time search the forums. Thanks.

ux2dos test.txt | uuencode myattach.txt | mailx -m -s "Subject" myemail@domain.com

The "-m" switch is important. It came up on another post earlier.

The second parameter to "uuencode" is not required because output is to a pipe.

I already searched in forums, but no luck....this time too am getting the below msg in mail body without attachment:

begin 644 file.txt
I:&5L;&\*"E1H:7,@:7,@;6%I;"!";V1Y+@H)=&%B"@ET86(*16YD"@H`
`
end

I used uuencode file.txt file.txt | mailx -s "subject" <mymailid>

Try my version in post #3.

Thanks Methyl it is working fine...now i want to write the mail body alongwith attachment....I am using the below command but body is blank:

echo "hello" ; ux2dos test.txt | uuencode myattach.txt | mailx -m -s "Subject" <my mail_id>

---------- Post updated at 01:31 PM ---------- Previous update was at 01:25 PM ----------

I used the below...it is working fine...
ux2dos test.txt | uuencode myattach.txt | mailx -m -s "Subject" my@id <test.txt
Thanks guys for quick help

---------- Post updated at 01:36 PM ---------- Previous update was at 01:31 PM ----------

No I was wrong using the below command i am getting body only:

ux2dos test.txt | uuencode myattach.txt | mailx -m -s "Subject" my@id <test.txt