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