C#, Lotus Interop: Getting Message Information

Posted by tsilb on Stack Overflow See other posts from Stack Overflow or by tsilb
Published on 2008-11-20T19:03:20Z Indexed on 2010/03/13 10:05 UTC
Read the original article Hit count: 741

I'm using Interop.Domino.dll to retrieve E-mails from a Lotus "Database" (Term used loosely). I'm having some difficulty in retrieving certain fields and wonder how to do this properly. I've been using NotesDocument.GetFirstItem to retrieve Subject, From and Body.

My issues in this regard are thus:

  1. How do I retrieve Reply-To address? Is there a list of "Items" to get somewhere? I can't find it.
  2. How do I retrieve friendly names for From and Reply-To addresses?
  3. When I retrieve Body this way, it's formatted wierdly with square bracket sets ([]) interspersed randomly across the message body, and parts of the text aren't where I expect them.

Related code:

string 
  ActualSubject = nDoc.GetFirstItem("Subject").Text,
  ActualFrom = nDoc.GetFirstItem("From").Text,
  ActualBody = nDoc.GetFirstItem("Body").Text;

© Stack Overflow or respective owner

Related posts about c#

Related posts about lotus-notes