Hi I am new on lotus notes programming. I need to create a button with a URL in an email body using notes C++ API . I tried inserting an html code using NSFItemAppend with mail body item and html or rich text as data type , but it simply does not display any data. Can somebody help me in this regard.
html code sample
Link
Subject: create button in mail body using C++ APIs
First of all, you need to figure out which API you are using. You say you are using the Notes C++ API but you also say you are calling NSFItemAppend. NSFItemAppend is a function in the Notes C API, not the Notes C++ API.
Secondly, you need to learn about Notes rich text. In the Notes C API, this means that you need to learn about CD records. In the Notes C++ API, this means that you need to learn about the LNRichText class.
Also, you need to understand that when you embed HTML in a Notes mail body, you are not embedding an entire HTML document so you don’t want to have an tag or a tag.
Finally, to be very honest: the Notes C API is not intended for people who are new to Notes. It is very low level. The learning curve is very steep. The API assumes that the programmer has in-depth knowledge of Notes architecture. You need to read every bit of the API documentation, not just search it for calls that you think you need. You also need to read this: http://www-12.lotus.com/ldd/doc/uafiles.nsf/docs/inside-notes/$File/insidenotes.pdf, and probably a lot more. The Notes C++ API is a little higher level than the C API, but it is still really not intended for beginners.
-rich