Click to See Complete Forum and Search --> : E-mail in HTML format?


Dima1970
February 21st, 2000, 07:52 PM
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

Cakkie
February 22nd, 2000, 12:14 AM
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
slisse@planetinternet.be

The best way to escape a problem, is to solve it.