title: Sending mail with html table format using awk command
body: <p>I am trying to send mail in html table format using awk command as below:</p>
  
  <pre><code>(
  
  echo "From: "
  
  echo "Subject: testing of html table using awk"
  
  awk 'BEGIN{print "&lt;table&gt;"} {print "&lt;tr&gt;";for(i=1;i&lt;=NF;i++)print "&lt;td&gt;" $i"&lt;/td&gt;";print  "&lt;/tr&gt;"} END{print "&lt;/table&gt;"}' file.tmp
  
  ) | sendmail xxx@yy.com
  </code></pre>
  
  <p>And my file(file.tmp) contains as below:</p>
  
  <pre><code>AAA 1 1 1 1 0 0
  
  SAP 1 1 1 1 0 0
  
  RTTC 1 1 1 1 0 0
  
  PGW 1 1 1 1 0 0
  </code></pre>
  
  <p>But I am not getting the mail in html tabular format but instead with html code itself.</p>
  
  <p>Is the AWK command correct? Or am I missing something ?</p>