Hi,
Although I don't like html mail, I've had a simular problem (sun box to windows outlook).
I solved it by including the content type and boundry settings in the file that's being piped to mailx.
This 'html.file' will show as html (in outlook, cannot test it with other html compliant mailreaders):
Code:
From: some.user@other.machine
Subject: Test
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----_=_NextPart_000_01C5B90C.9F15F690"
------_=_NextPart_000_01C5B90C.9F15F690
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE html PUBliC "-//W3C//DTD html 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</head>
<body>
<div>
<b>
Testing 1 2 3.
</b><br>
</div>
</body>
</html>
The first From is used if your reply adress needs to differ from the one that's automatically included. Usage is like you showed (cat file | nailx
user@some.machine).
Hope this helps.