MEWebAdmin.Login Description returns nothing

redokra
Posts: 9
Joined: Thu Apr 07, 2005 4:32 am
Location: Ky, USA

MEWebAdmin.Login Description returns nothing

Postby redokra » Wed Jan 07, 2009 4:17 pm

I created an ASP (NOT ASP.NET) page that gets a user's mailbox properties. I would like to get the Friendly Name or Description. I used the below code but when writing frmLoginDescription to the screen, it is always blank.

Set oLogin = Server.CreateObject("MEWebAdmin.Login")
oLogin.Account = postoffice
oLogin.LastAttempt = -1
oLogin.LastSuccessfulLogin = -1
oLogin.LoginAttempts = -1
oLogin.Password = ""
oLogin.Rights = ""
oLogin.Status = -1
oLogin.UserName = id
If oLogin.GetLogin() Then
frmLoginPassword = oLogin.Password
frmLoginRight = oLogin.Rights
frmLoginStatus = oLogin.Status
frmLoginDescription = oLogin.Description
End If
Set oLogin = Nothing

Response.Write frmLoginDescription

Who is online

Users browsing this forum: No registered users and 2 guests