title: How to sent Email as HTML from bash script by using mail or mailx command (Centos/Redhat)
body: <p>I am trying to sent an email from bash script which should have HTML table in body , 
  I am using mail command in Redhat . but its keep sending me as Text file .</p>
  
  <pre><code>difference=`expr $artu_removed - $artu_added`
  
  mail  -s "Built notification" test@gmail.com &lt;&lt; EOF
  
  
  &lt;html&gt;
  
  &lt;head&gt;&lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;table&gt;  
   &lt;tr&gt;
    &lt;Td&gt; Before &lt;/td&gt;  &lt;td&gt;after &lt;/td&gt;  &lt;td&gt;differece &lt;/td&gt;
   &lt;/tr&gt;
  
  &lt;tr&gt;
    &lt;Td&gt; $_before &lt;/td&gt;  &lt;td&gt;$_after &lt;/td&gt;  &lt;td&gt;$difference &lt;/td&gt;
   &lt;/tr&gt;
  
  &lt;/table&gt;
  
   Before:$_before
   After:$_after
   Difference:$difference
  &lt;/body&gt;
  &lt;/html&gt;
  EOF
  </code></pre>
  
  <p>Can any one please let me know what shall I do, I am using Redhat, Not ubuntu </p>
  
  <p>Thanks</p>