Link to home
Start Free TrialLog in
Avatar of ruperts
ruperts

asked on

Retrieving e-mail and user details.

Hello all,
I'm developing an application for a corprate Intranet where everybody is using NT & they're also using MS Exchange with outlook.

This form needs the users name and email address, is it possible to pull there name & smtp email address from the client/user machine? The reason I say smtp is that with outlook you only see the reciepents name when you send an email so a lot of the employees don't even know there full email address.

Rupert
Avatar of clockwatcher
clockwatcher

What version of exchange?  If it's 5.5, you should be able to use ADO with LDAP to pull the user's email.

I've got some sample code around here that I wrote a long while back, if I can find it again, I'll post it.  If not, here's a link that could help you get started.

http://msdn.microsoft.com/library/backgrnd/html/msdn_adsiexch.htm
Avatar of ruperts

ASKER

Also seeing that document I can get their name as well!

I'm looking to the version of exchange as the server is elsewhere!
Avatar of ruperts

ASKER

mmm english gone to pot..

Try again.

I also saw that you can get the user name as well
Avatar of ruperts

ASKER

mmm english gone to pot..

Try again.

I also saw that you can get the user name as well
Avatar of ruperts

ASKER

Right note to self, don't press refesh after submitting a comment!

Anyway, yes we are using Exchange 5.5, and if you have any code that would be excellent!

Basically when the user loads this form, there name & email will appear at the top so that they know that we know who they are!
Maybe I'm missing something here...

But I don't see how you can access client side exchange information from asp (processed on the server).

Is this possible?

Aren't you pretty much limited on client information to whatever is sent through the http header?

When we want to ID somebody, we usually use IP address or something like that.
Avatar of ruperts

ASKER

Mayhew,

This is to be installed on a intranet, all users must first log in to NT to access the intranet, because of this each user has an id which can used to find out their details (somehow!)

Rupert
Avatar of Mark Franz
Hmmm.... unless their login is the same as there Exchange login I don't know if you can pop someones email address.  Unless you populate a dB with the users information first, then pull this in to the page.
Avatar of ruperts

ASKER

... unless their login is the same as there Exchange login

I'm no NT expert, but I'm 99% sure they must be the same otherwise they would have to log on to the mail separatly, which as far as I know they don't.
Right, it is common to have different logins for the intranet and email, as far as I have experienced.
ASKER CERTIFIED SOLUTION
Avatar of clockwatcher
clockwatcher

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ruperts

ASKER

Right I'll have to get back to you on Monday, when I'm let loose on the server!

Rupert
Nice Perl code Clockwatcher... :-)

Mark
Avatar of ruperts

ASKER

Its all gone wrong :-(

Not your code, but our set up, I've now been told that we have different user names for NT and for Exchange (so no e-mail look up) secondly security between the Intranet Server and the Users is such that they have to logon on again when using NT Chall/Resp, which I'm doing so I know who they are!

But anyway I'm sure you code would have worked perfectly.. So have a A+!

Look at downloads here-------->
http://www.cdolive.com/
Avatar of ruperts

ASKER

thanks, but I now move on from that project - actually I've changed jobs!!
Per recommendation, force-accepted by
Netminder
CS Moderator