How to get Email Address from Auth'd User

I am developing an web application in Domino\Lotus Notes. When going to the URL, users are prompted for Domino user name and password (so far,everything is fine).

From that I am able to use the following code to get the logged in users, user name.

Dim NN As New NotesName(doc.UserName(0))

where doc.UserName(0) is on the form with @UserName as the formula.

Now when I try to access NN.Addr821 there is nothing in the field.

We are using the domino administrator to create and manage email accounts, and an email address for each user is in the internet address field.

Is there a way to access the content of that field through a class in LotusScript or through the Formula Language?

Any help is very appreciated.

-Kris

Subject: Get details from server address book

at which event so u wish to get this information (email address). In case the person is already authenticated at the server , you can very well read the details from his person document details at the server address book.

Subject: Already authed on the server

They have already passed the lotus login screen, so I can just open the address book on the server and get their user document?

Subject: Use dblookup / getdocumentbykey

since you already have the authenticated person details with you, you need to lookup rest of the information from the person document in the nab programatically … u need to check the appropriate view in nab which can be used to do dblookup or getdocumentbykey method …

Subject: Take a look at @namelookup.