HTML in Outlook

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi All,

We use Outlook as our email client, go figure.

Anyhow, we have an application that creates a file and sends it to
several people in ur company.  They want the emails to have different
color text and fonts.

Right now, the program simply creates a file on disk with all the HTML
tags in it, and then uses a stored Java routine our Oracle  database to
send the email.  But the email arrives with all the tags visible and no

How can we do this?  How is it different from typing in an email in
Outlook, and then going and changing the font color or size?

Thanks in advance.


Re: HTML in Outlook wrote:

Quoted text here. Click to load it

You must set the 'Content-Type' header of the email to 'text/html'. It is
probably set to 'text/plain' or is absent (which implies 'text/plain').

If your 'file on disk' already can contain mail headers that the Java
routine correctly handles, add the line 'Content-Type: text/html'. (Do the
files have lines like "From:" or "To:" followed by a blank line before the content of the

Otherwise you have to ask your local Java/Oracle guy to modify the routine.

Benjamin Niemann
Email: pink at odahoda dot de
WWW: /

Re: HTML in Outlook

   at 06:37 AM, said:

Quoted text here. Click to load it

That's as it should be; the Internet is not the WWW. The proper
language for e-mail is plain text ASCII text, or properly labelled
text in another character set. The recipient might be using e-mail
software that does not recognize inappropriate HTML or might have
disabled the rendering of HTML for security reasons.

Quoted text here. Click to load it

You can't. Render the message as text before you send it.

Quoted text here. Click to load it

It isn't; that's not appropriate for e-mail either. You should only do
that if you know that the recipient has software compatible with
lookout's proprietary formats.

Shmuel (Seymour J.) Metz, SysProg and JOAT  <

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to

Site Timeline