c# - How to get Internet Address from Lotus Notes -


A notes calendar entry has an item called "Cheer", which is a specific name on the line "CN = My Name" / OU = some / o = SomethingElse ". How can I convert it to an SMTP address like "my.name@company.com"? I tried to look at the note name which has an Addr821 property, but it only works when you give it a SMTP address - when a specific name is given, Addr821 returns the same thing to you.

One option I see is to use the Address Book, but how do I view it using a specific name?

I think I can see it using LDAP, but how does my code look for the LDAP server is the case Novell?)

Any help would be appreciated.

I am using Interop.Domino.dll with C #. I have never used interop.domino.dll but I think these approaches can help you:

If you < Code>, then the evaluate function, you can use the @NameLookup formula:

  evaluation (" @namchuk ([full]; Chair; 'Internet address') ", calendar document) Another way to show the name in the" Manually "Domino Directory:  < Ul> 
  • session Go through Ssbooks , search on a public and a server.
  • Get the view $ VIMPeople .
  • Using getDocumentByKey short name format.
  • edit

    Here is the (untested) Lotuscript code to get an internet address for a given user, It should be relatively easy to translate C #: Error in string as function GetInternetAddress (user name as string) Goto unreadable haze session as new notes session slow dominodary notes as database dirty notes name New notes in (use Gkrta name) session candidates for. .isPublicAddressBook and Candidates Server & lt; & Gt; "" Then failed to find the Domino Directory "dominadorirectory = Finish the final exit to the candidate, if the endold ends, if the manual is not something then the error is 1900." If not pressed dominodirectory.isOpenDoddodordiriri.OPEN ("", "") Notes Visual View = dominodirectory.getView ("$ VIMPeople") as documented document document document view = view.getDocumentByKey (notes. If the document is nothing, error 1900, "failed to find document match" & amp; Username & amp; "'" GetInternetAddress = exit the document.InternetAddress (0) function error: Error Error, Error & amp; Crow (13) + "Module:" & amp; Cestrate (Getthrudinfo (1)) & amp; ", Line:" & amp; Ceastrate (ARL) and Function


    Comments