HTML tables in SHELL unix

0

I want to send an email with an HTML table which I believe in a Shell, but when I send it, it does not generate the table, it only generates the header and the data. I leave the code of the Shell:

(
echo "To: [email protected]"
echo "Subject: MENSAJE DE PRUEBA"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html; charset=ISO-8859-1"
echo "Content-Disposition: inline"
echo 
echo "<html>"
echo "<body>"
echo "<table>"
echo "<tr>"
echo "<th>ORIGEN</th>"
echo "<th>TIPO</th>"
echo "<th>CANTIDAD</th>"
echo "</tr>"
echo "<tr>"
echo "<td>$esac</td>"
echo "<td>ARCHIVO</td>"
echo "<td>1679748</td>"
echo "</tr>"
echo "</table>"
echo "</body>"
echo "</html>"
echo
) | /usr/sbin/sendmail -t
    
asked by Ricardo 09.08.2018 в 17:05
source

1 answer

1

I solved it by placing the following:

<table width="400" border="1" cellspacing="0" bordercolor="666633"> 

and remove the body tag.

    
answered by 14.08.2018 / 19:20
source