Re: Oracle Java Mail Question
Date: 28 Jun 2005 10:40:17 -0800
Message-ID: <42c18b81_at_news.victoria.tc.ca>
amerar_at_iwc.net wrote:
: Hi All,
: I've put HTML tags in the body of the email, but Outlook is ignoring
: the tags.
: Given what I have access to, using this Java mail routine, how can I
: send HTML emails?
: Why is Outlook ignoring the HTML tags?
because the mail header does not contain the necessary mime headers.
You need to somehow add headers for
MIME-Version: 1.0 Content-type: text/html
That would be for the simple case of a single part message in html. A multipart message with both plan text and html is commonly considered to be better.
Are you using the java mail classes?
The java mail api docs have various methods, but I don't see the thing I expected - "setContentType" (which be the obvious thing to use).
There is a "setHeader" method. Perhaps you have to use that with the correct strings yourself.
There is also a constructor for a mime message, (as opposed to just a message), so perhaps you should start with that and see what it produces.
-- This space not for rent.Received on Tue Jun 28 2005 - 20:40:17 CEST