Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Andriy Burachinskiy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20552
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such thing as a <bold> tag - it's <b>, without the "old".
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm talking about here in this forum.

<b> tags work fine if you disable HTML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic