uuencode <filename.txt> <filename.txt> | mail -s "Hello this is mine subject"
009satya@gmail.com
OR
If you need to send the text along with then
( cat textfile; uuencode <filename.txt> <filename.txt> ) | mail -s "Hello this is my subject"
009satya@gmail.com
Note: (1) 'filename.txt' is an attachment file.
(2) 'textfile' contains the mail contents ( if require)