HTML in Outlook

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amerar@iwc.net

    HTML in Outlook


    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
    HTML.

    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.

    Art

  • Benjamin Niemann

    #2
    Re: HTML in Outlook

    amerar@iwc.net wrote:
    [color=blue]
    > 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
    > HTML.
    >
    > 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?[/color]

    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: sender@example. com" or "To:
    recipent@exampl e.com" followed by a blank line before the content of the
    mail?)

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


    --
    Benjamin Niemann
    Email: pink at odahoda dot de
    WWW: http://www.odahoda.de/

    Comment

    • Shmuel (Seymour J.) Metz

      #3
      Re: HTML in Outlook

      In <1119965865.060 145.50800@o13g2 000cwo.googlegr oups.com>, on
      06/28/2005
      at 06:37 AM, amerar@iwc.net said:
      [color=blue]
      >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 HTML.[/color]

      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.
      [color=blue]
      >How can we do this?[/color]

      You can't. Render the message as text before you send it.
      [color=blue]
      >How is it different from typing in an email in
      >Outlook, and then going and changing the font color or size?[/color]

      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 <http://patriot.net/~shmuel>

      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 spamtrap@librar y.lspace.org

      Comment

      Working...