title: Bash: mailx attachment not recognised
body: <p>I send emails using mailx, which works fine. When I am sending email with an attachment, on Gmail webui the attachments is OK, but not in Mail.app on Mac OS X.  The bash code:</p>
  
  <pre><code>( uuencode file file ) | mailx -s "subject" "asdf@gmail.com"
  </code></pre>
  
  <p>In Mail.app attachment show up as text in the body of message:</p>
  
  <pre><code>begin 777 file M[[N_(PT*(R!C8V-A;2!
  </code></pre>
  
  <p>Is there any solution?</p>