CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Posts
    8

    E-mail in HTML format?

    Hello, all.

    Can anybody advice me on how can I send an e-mail in HTML format from a VB application. I can send normal text, and when I try to send a real html file by just reading it character by character into body of the message - I get all those delimiters and other HTML garbage on the received message.
    So again, how to I send it in HTML or RTF format? Thanks


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: E-mail in HTML format?

    This is because you probably didn't supply a mime header. If you don't do this, it will be handled as plain text. This is why your htmlcode appears instead of the document. Check out http://www.cis.ohio-state.edu/htbin/rfc/rfc1341.html. This should will give you a better view of the mime-declarations. I'm not sure, but I think your problem can be solved just by adding this line to your email header:
    Content-type: text/html
    If this doesn't work, check out the rfc at the url above.

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured