problem getting the SMTP address (Outlook 2003)

  • Thread starter Thread starter Mikhail
  • Start date Start date
M

Mikhail

Hi,
I need to get the SMTP address of the CurrentUser. To do that I'm creating
the oSession object out of MAPI.Session:
Set oSession = New MAPI.Session
oSession.Logon NewSession:=False, showDialog:=False
But, line:
set obj = oSession.CurrentUser
triggered the security warning message in v. 2003 (v. 2000 and v. XP works
OK)

How to get the SMTP address without this message?

Thanks,
 
Back
Top