代码之家  ›  专栏  ›  技术社区  ›  Corv1nus

Lotus Notes/Domino Designer 8-从电子邮件获取用户名

  •  0
  • Corv1nus  · 技术社区  · 16 年前

    1 回复  |  直到 16 年前
        1
  •  1
  •   Ed Schembor    16 年前

    您可以在公司名称和地址簿(NAB)数据库中查找internet电子邮件地址。我相信开箱即用,在NAB中有一个名为“个人/通过互联网电子邮件”的视图。在Notes代理中,可以使用公式语言(使用@DBLookup)或脚本(使用notesView.getDocumentByKey). 或者可以使用COM进行查找。

    在脚本中,这看起来像:

    ...
    dim s as new notesSession, db as notesDatabase, vw as notesView, doc as notesDocument
    set db = s.getDatabase (YOUR_SERVER, "names.nsf")
    set vw = db.getView ("People\By Internet Mail")
    set doc = vw.getDocumentByKey (EMAIL_ADDRESS_VALUE, true)
    if not (doc is nothing) then
        sName = doc.FullName(0)
    end if
    ....
    
    推荐文章