The Body field of Notes mail document in the database does not contain the actual email text at all, but just contains the HTML elements.
However, the actual email text is seen when this Notes mail document is opened in the browser.
We are using the below code snippet to fetch the email text:
Set nrtNotesRichTextItem=ndocEmailDocument.GetFirstItem ("Body")
strEmail = strEmail + "<br>" + nrtNotesRichTextItem.GetUnformattedText
As the Body field does not contain the actual email text, the variable strEmail is not returning the text, but returning the hyperlink text which when is clicked, redirects to a web page that contains the actual email text that we need.
Any leads on this?