title: mail: Invalid header when sending mail attachment with Ubuntu
body: <p>This exact question  was posted by user 'anvd' on 29th July but then removed - I found it on Google Cached version...!</p>
  
  <p>I'm guessing the fix was something obvious, but would be great if it wasn't removed.</p>
  
  <p>I am trying this command to send an email with an attachment.</p>
  
  <pre><code>echo 'These are contents of my daily backup' | mail -s 'Daily backup' -a /tmp/filename.gz mymail@hotmail.com
  </code></pre>
  
  <p>The error: mail: Invalid header: /tmp/filename.gz</p>
  
  <p>The email gets sent, but the attachment is not attached.</p>
  
  <p>This used to work, and still dos on other systems, but not sure what has changed on one of my machines...</p>