title: uuencode doesn't work properly for attaching files with my below command
body: <p>I am trying to <code>attach one file</code> and send few <code>echo messages</code> in the Body of an email using <code>mailx and uuencode</code>. I have below command which I have added them together, and uuencode doesn't work properly but I get echo message properly in my email.</p>
  
  <p>How can I make uuencode works here? Something wrong I am doing here I guess while combing uuencode with mailx?</p>
  
  <pre><code>(uuencode /tmp/chart.html percentage_graph.html) | mailx -s "LIP Data Quality Report for $DATE_YEST_FORMAT1" -r rj@host.com rj@host.com &lt;&lt;EOF
  Data Successfully loaded into LIP_DATA_QUALITY table
  
  Total Items Purchased: `echo $QUERY1 | awk '{print $1}'`
  
  Total Items MissingorMismatch: `echo $QUERY1 | awk '{print $2}'`
  
  Error Percentage: $QUERY2
  EOF
  </code></pre>
  
  <p>But for testing purpose if I issue below command to see whether I am getting any html file or not in an attachment, then I get an email with the attachment properly.</p>
  
  <pre><code>(uuencode /tmp/chart.html percentage_graph.html) | mailx -s "LIP Data Quality Report for $DATE_YEST_FORMAT1" -r rj@host.com rj@host.com
  </code></pre>
  
  <p>Then what's wrong in my first command when I combine them together?</p>