wood burning stoves*
The moose likes Other JSE/JEE APIs and the fly likes Problem in formatting of what is displayed in Outlook's opened window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Problem in formatting of what is displayed in Outlook Watch "Problem in formatting of what is displayed in Outlook New topic
Author

Problem in formatting of what is displayed in Outlook's opened window

Andriy Burachinskiy
Greenhorn

Joined: Dec 31, 2008
Posts: 17
Hi, guys. I need to send e-mail to one/several recipients. I need my application to retrieve data from DataBase and insert it into SUBJECT, BODY fields. I succeed in doing this,
(here is a part of my .jsp page):
------------------------------------------------------------------------
GENERATE e-mail

-----------------------------------------------------------------------

Upon clicking this reference in browser MS Outlook is being opened with populated data in appropriate fields - exactly what I need.
The problem is in the following: I need the data, inserted into Outlook's fields(Subject, Body etc.) formatted (bold, italic, etc). It must be done programatically, it's customer's demand. When I try something like:

-----------------------------------------------------------------------
&cc=email@address2.com
&bcc=email@address3.com
&body=<b_old>...</b_old>
-----------------------------------------------------------------------
<b_old - because this tag won't be displayed HERE otherwise

html tags are being displayed in Outlook's window. I also tried to type &LessThen; (<) / &GreaterTthen; (>). Result is exactly the same. Is there any overcome??? Thanks in advance for any ideas shared.. >
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You need to send a multipart MIME message with an HTML body.

And <bold> tags work fine: explore the environment; see those "options" below?
Andriy Burachinskiy
Greenhorn

Joined: Dec 31, 2008
Posts: 17
Thanks for reply, David. Sending mime type with message is a great idea.I thought of it, but don't know how yet. Could you please explain in more detail what you mean saying "explore the environment; see those "options" below?" ??? I didn't catch the idea..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You said <bold> tags don't work. There's an option below the message text box and above the submit button to "Disable HTML in this message".
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

There is no such thing as a <bold> tag - it's <b>, without the "old".


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Rob Prime wrote:There is no such thing as a <bold> tag - it's <b>, without the "old".

Ha--I didn't even *think* of that; I am amused with myself.
Andriy Burachinskiy
Greenhorn

Joined: Dec 31, 2008
Posts: 17
Surely, guys, I agree with You, see my first post:
------------------------------------------------------------------------
"<b_old - because this tag won't be displayed HERE otherwise"
------------------------------------------------------------------------
I typed so, because in other way '><'b'>''<'/b'>' would not be displayed... Thanks for Your attention and trying to help..
TO David Newton: "There's an option below the message text box and above the submit button to "Disable HTML in this message"". I use Microsoft Offie 2003, but didn't find such option !!? There's smth. like "HTML", "plain text" etc., but this doesn't help.. Any ideas???
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm talking about here in this forum.

<b> tags work fine if you disable HTML.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in formatting of what is displayed in Outlook's opened window
 
Similar Threads
JSP makes me headache
autopopulating emails into unsubscibe html forms
How to send email in text format?
Please Help me Ranchers
Problem in formatting of what is displayed in Outlook's opened window