Sendmail command

Can anyone tell me?
How can i attach the file using sendmail command?
Give me one example.

Some threads regarding this topic:

How do I send email? - The UNIX and Linux Forums

Regards

here is the command :

uuencode filename1 filename1 | mailx -s "subject" toxyz@abc.com

Using above command you can send a file "filename1" to the person "toxyz@abc.com"

It works on AIX and Unix.
I am not sure about the Solaris flavor.

Thanks
Varun Gupta:b: