mail: html content

hi guys,

am required to prepare a report and mail it, to make it more appealing :stuck_out_tongue: i wish to have content of mail in rich text format i.e html type

with mailx how to specify the content type of mail body as html?

Thanks in advance!!!

rishi

Have you ever recceived a reply on this message - I would like to do the same thing.

Can't use mailx to send html, use sendmail instead....

#!/usr/bin/ksh

export MAILTO="recipient@mail.com"
export CONTENT="/tmp/example.html"
export SUBJECT="Example Report"
(
 echo "Subject: $SUBJECT"
 echo "MIME-Version: 1.0"
 echo "Content-Type: text/html"
 echo "Content-Disposition: inline"
 cat $CONTENT
) | /usr/sbin/sendmail $MAILTO