title: Linux mail command file attachment
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/17359/how-do-i-send-a-file-as-an-email-attachment-using-linux-command-line">How do I send a file as an email attachment using Linux command line?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to send a mail with file attachment in linux with mail command. I have tried this:</p>
  
  <pre><code>mail foo@gmail.com &lt; test.txt
  </code></pre>
  
  <p>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?</p>