本文介绍了如何在Lotus脚本中访问当前已登录的用户电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找以编程方式登录的当前Notes客户端用户的电子邮件地址.有办法吗?我正在通过会话访问用户名,但我需要电子邮件地址预先感谢.

I am looking to find the email address of the current notes client user who is logged in programmatically. Is there a way to do it ? I am accessing username with session but I need email addressThanks in advance.

推荐答案

从帮助数据库获取getMailInfo方法的示例示例:

From the Help database, part of an example for the getMailInfo method:

Dim session As New NotesSession
Dim db As NotesDatabase
Dim mynotesdir As NotesDirectory
Set mynotesdir  = session.getDirectory("server name")
Dim homeserver As Variant

homeserver =  mynotesdir.GetMailInfo(session.UserName, True) ' or EffectiveUserName
Msgbox "internetMailAddress: " + Cstr(homeserver(7))

这篇关于如何在Lotus脚本中访问当前已登录的用户电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 21:58