[CentOS] send HTML formatted mail (for M$ Outlook) with mailx

John Doe jdmls at yahoo.com
Mon Oct 25 11:56:51 EDT 2010


From: Sven Aluoor <aluoor at gmail.com>

> On Thu, Oct 21, 2010 at 6:12 PM, John Doe <jdmls at yahoo.com> wrote:
> > Not sure  about outlook but the following works for me and tbird:
> > Add  "Content-type: text/html" at the begining...
> This doesn't work with M$  Outlook. I receive a plain text mail with
> the contents:

This does not work for me either... with mailx...
but with sendmail, it works.

$ cat <<EOF | /usr/sbin/sendmail -t
Subject: test
to: jd at example.com
Content-type: text/html
<p>
<table border='1' width='90%' align='center' summary='Script output'>
<tr><td align="right">15361753</td></tr>
</table>
EOF

JD


      


More information about the CentOS mailing list