473,586 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jul 24 '05 #1
2 4883
am****@iwc.net wrote:
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?


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: se****@example. com" or "To:
re******@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/
Jul 24 '05 #2
In <11************ *********@o13g2 000cwo.googlegr oups.com>, on
06/28/2005
at 06:37 AM, am****@iwc.net said:
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.
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.
How can we do this?
You can't. Render the message as text before you send it.
How is it different from typing in an email in
Outlook, and then going and changing the font color or size?


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

Jul 24 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2099
by: Ruud vd Velden | last post by:
Hello, We're using Office XP on Windows 2000 SP4. After installing the Oracle Connector for Outlook the following problem occurs: Emails sent by Outlook, in HTML format, do have a strange format. The text/plain section of the message source is left empty. Therefore some mailclients cannot display the body, so recipients think they...
2
2897
by: Carmine Ascoli | last post by:
Hello There: For some reason there is an underlined hyperlink under the text title describing the first href link to an asp page in my default.htm file. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <body bgcolor=##00CCFF> <title>NPN Frequently Asked Questions (FAQ)</title>
5
2438
by: Mike | last post by:
I am creating both a text and html version of the same newsletter and sending using CDOSYS. Both of them incorporate a list of stories drawn from a database which are assigned to a variable storyloop. The text version works fine, but partway throught the html version when viewed in Outlook 2000, it goes wrong. View source shows nothing...
0
951
by: Ed Landau | last post by:
I'd like to write a app which will extend Outlook's (2003) tasks to include fields I like to work with, with routines which work in the background (like date-stamping changes etc.) and with custom reporting. I'd modify the current default form or design my own. I could write VBA in Outlook itself and modify its forms, write VBA code to...
1
2318
by: Scott Emick | last post by:
I am using the following code. When outlook opens the message and the Outlook HTML editor is the default editor, there is no problem. If Word is the default editor, however, it butchers up the HTML and the message looks like crap. How can I force the message to open in the Outlook HTML editor? Thanks, Scott Dim myOlApp As Object...
12
2246
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation errors show up in your error-list, you can disable this functionality by selecting the Tools->Options menu item in VS or Visual Web Developer. ...
1
8807
by: jeff.boggs | last post by:
Hello, I have a problem inserting HTML from a Word document into a new Outlook mail message. The message ends up losing all of the formatting and the image that is supposed to appear at the top of the message does not. Here is the code for inserting the HTML. var oOutlookApp, oWordApp, oOutlookMsg, iOutlookRunning; iOutlookRunning =...
2
2496
by: Shawn H | last post by:
Hi guys, I'm experiencing this really strange issue with a HTML form, because no data gets posted. Basically, everything is written in ASP. Firstly, a user fills in an online (ASP) form, and then submits it to another ASP page (e.g. Send.asp). Now Send.asp retrieves all the form data and sends another HTML form via an e-mail. I then...
0
1203
by: =?Utf-8?B?QnJpYW5ESA==?= | last post by:
I am looking for a way to move text and images that have been copy/paste into a RTF text box out as html, or better yet outlook format. I need a way to create outlook emails (html) without using Outlook I have all the code working to build the document but when converting to html the file size is to large. I have found a few 3rd party...
1
4576
by: robnoper | last post by:
XP SP2, access and outlook 2003 I have a form with 3 command buttons on that when one is pressed it opens up a html email for the user to send. Two of the emails work fine and open with the full colour and size formatted text but one of them just shows the html code in the body with no formatting. The vba code for the command button is as...
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.