Display HTML Email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Benny Ng

    Display HTML Email

    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


  • mayayana

    #2
    Re: Display HTML Email

    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.

    --
    _______________ ______________

    mayayXXana1a@mi ndYYspring.com
    For return email remove XX and YY.
    _______________ ______________
    Benny Ng <brisco_vk@hotm ail.com> wrote in message
    news:417bd570$1 _1@news.tm.net. my...[color=blue]
    > 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[/color]
    currently[color=blue]
    > shows html email in html codes.Please help.
    >
    > Benny
    >
    >[/color]


    Comment

    Working...