I think you could do it with a Web Browser control.
That's essentially what Outlook Express does.
If you find the line:
Content-Type: text/html;
in the email then the line above should be a boundary marker.
The next blank line below should mark the start of the HTML,
which continues until the next boundary marker.
If, for example, the boundary is : -----12345678
then it should read something like:
-----12345678
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<HTML> .................
blah, blah, blah
</HTML>
-----12345678
So just find "Content-Type: text/html;", then get boundary
marker and look for next blank line to start reading. Then
find next matching boundary marker, read everything in
between, and load it into a WB window.
The only problem is that a WB window is basically
an IE window - not a very safe place to be loading HTML
email.
--
_____________________________
ma**********@mindYYspring.com
For return email remove XX and YY.
_____________________________
Benny Ng <br*******@hotmail.com> wrote in message
news:41**********@news.tm.net.my...
Hi,
I have created a program that can send and receive email.I would like to
know how can i give my program the ability to view html emails? It
currently shows html email in html codes.Please help.
Benny