Hi All,
I was able to send html file as the body of the email as below:
export MAILTO="
em...@company.com"
export SUBJECT="test message"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
echo "<HTML><BODY>"
echo `cat test.html`
echo "</BODY></HTML>"
) | /usr/sbin/sendmail $MAILTO
However, my question is how to include stylesheet in the email body?
The HTML file has stylesheet but doesn't show in email body.