Possible Duplicate:
How do I send a file as an email attachment using Linux command line?
I want to send a mail with file attachment in linux with mail command. I have tried this:
mail foo@gmail.com < test.txt
but test.txt is send as message, not as a attachment. I don't want to use mutt or other types of mail alternatives. Also i DON'T want to use uuencode. How can i send a file attachment with pure mail command from bash?