1
votes

I am using Lotus notes 8.5 c++ api to create a new notes document like email,calendars, tasks,etc. i am not able to put html data in any notes document body.When i insert html data, it shows as Html code. however i can put plain text easily using following api.

LnDocument Mydocument;
Lnstring strval= "xyz";
Lntext Txt;
Txt.Setvalue(strval);
Mydocument.Createitem("Body", Txt, LNITEMFLAGS_SUMMARY, LNITEMOPTION_DELETE_APPEND); 

How can i Put html Data in Body field?

1

1 Answers

1
votes

This tutorial has some good instructions on how to create a HTML email

It is aimed at Lotusscript but shouldn't be too hard to convert to the C++ api. The gist is that you'll have to create a NotesMimeEntity and set its text to the HTML you've generated.