title: How to send a html file using mails in shell script?
body: <p>I want to store my matrix's data in a html file and send a email in outlook ,my code looks as follows:</p>
  
  <pre><code>  printf "&lt;!DOCTYPE html&gt;"
    printf "&lt;html&gt;"
    printf "&lt;head&gt;"
    printf "&lt;style&gt;"
  
    printf "&lt;/style&gt;"
    printf "&lt;/head&gt;"
    printf "&lt;body&gt;"
  
    printf "&lt;table&gt;"
      printf "&lt;tr&gt;"
       printf "&lt;th&gt;Total&lt;/th&gt;"
        printf "&lt;th&gt;StillFail&lt;/th&gt;"
        printf "&lt;th&gt;Pass&lt;/th&gt;"
        printf "&lt;th&gt;ScriptError&lt;/th&gt;"
        printf "&lt;th&gt;APIName&lt;/th&gt;"
      printf "&lt;/tr&gt;"
      printf "&lt;tr&gt;"
    echo
         for ((j=1;j&lt;=num_rows;j++)) do
          printf "&lt;tr&gt;"
         for ((i=1;i&lt;=num_columns;i++)) do
                printf "&lt;td&gt;"
                printf "${matrix[$j,$i]}"
                printf  "&lt;/td&gt;"
          printf "&lt;/tr&gt;"
          done
     echo
     done
    printf "&lt;/tr&gt;"
    printf "&lt;/table&gt;"
  
    printf "&lt;/body&gt;"
    printf "&lt;/html&gt;"
    #mailx -a 'Content-Type: html' -s "my subject" test@example.com &lt; output.html
    mailx -s "TESTING MAIL"&lt;/home/test/example/output.html  "test@example.com"
  </code></pre>
  
  <p>I want my output as a well aligned table. Can someone help me on this? TIA</p>