title: Send a mail using 'sendmail' with uuencode, and having a subject alongwith
body: <p>I am trying to send a mail with attachment using sendmail. The problem is I am unable to send a subject line along with this.</p>
  
  <p>The following command line fires two mails instead of one - one with the "<code>Subject : Report</code>", and the other with the attachment:</p>
  
  <pre><code>/usr/bin/gmime-uuencode "/tmp/url_by_ip.txt" "Report.txt" | echo "Subject: Report" | /usr/sbin/sendmail &lt;sender&gt; &lt;receiver&gt;
  </code></pre>