Mailx Command

Hi,

mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com<<EOF
Hi,

~<!uuencode a.txt a.txt
EOF

the above code is sending mails, but attachment is not going instead i just get like below

~<!uuencode a.txt a.txt

Thanks.

what about if you put:

mailx -s "hi" -~ -r "abc@yahoo.com" aaa@yahoo.com<<EOF

on your command line and force tilde expansion?

Try:

uuencode a.txt a.txt | mailx -s "hi" -r "abc@yahoo.com"

mailx -s "hi" -~ -r "abc@yahoo.com" aaa@yahoo.com<<EOF

is still not attaching.....when i remove -r "abc@yahoo.com" then it is working fine...

uuencode a.txt a.txt | mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com

this is working fine, but i need to insert this attachment between two paragraph...
how do i do that?

Thanks.