sending HTML formatted Lotus Notes email using Java


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 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 ChotaliyaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sjef BosmanGroupware ConsultantCommented:
Try to copy the item using doc.getFirstItem("body").copyToDocument(reminder)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Manisha ChotaliyaAuthor Commented:
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.


It resolved my issue.
Sjef BosmanGroupware ConsultantCommented:
Do not hesitate to accept your own solution...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.