Link to home
Start Free TrialLog in
Avatar of Manisha Chotaliya
Manisha ChotaliyaFlag for India

asked on

sending HTML formatted Lotus Notes email using Java

Hi,

Please help me to resolve this issue.I'm in urgent need.I tried to search in google but couldn't get it.Spent many days but no luck :-(

 (1) I'm creating Email Body with RichTextItem by using Document.createRichTextItem("Body") with Java and appending text and Table and then  send this email with java by keeping myself in BCC.so I will get the same email.

I get the email which has one Table and few text data.

(2) Now I have to use this same data and keep as history while sending the next email.
 I mean the reminder email.
 but When I retrieve this email from My Inbox,Format gets changed as I'm reading the body as String using
doc.getItemValueString(EmailRoboConstant.BODY);So in history the table format disapear.Only it shows the text .

How can I get the same formatting which was created in Point-1?

Any help will be appreciated highly.

Thanks & Regards,
Manisha
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Manisha Chotaliya

ASKER

Dear Bosman,

Thank You So Much for your prompt response.

Your suggestion helped me a lot.

While sending the reminder email,I'm creating the RichTextItem in Document with different content and then Appending the Original RichTextBody which I got while sending the first email.

rtitem.appendRTItem((RichTextItem)mailPojo.getOriginalBody().getFirstItem("Body"));

It resolved my issue.
Do not hesitate to accept your own solution...