How to send attachment to web-based email client using mailx

hi,

i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment.

the code i am using is as follows,

uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com

does anyone know how to solve this?

thanks,
Z

Use sendmail instead. See this post.