any way to retrieve user's exchange server?

  • Thread starter Thread starter lee.james
  • Start date Start date
L

lee.james

without using CDO?

Need a way of retrieving a user's mail server and we have different
versions of Outlook (2000, XP, 2003) and not all are guaranteed to have
the CDO add-in.

Psuedo Code:

Get users home server
If server = "server A" then email someone
If server = "server B" then email someone else

Thx,

James
 
(e-mail address removed) wrote in @z14g2000cwz.googlegroups.com:
without using CDO?

Need a way of retrieving a user's mail server and we have different
versions of Outlook (2000, XP, 2003) and not all are guaranteed to have
the CDO add-in.

Yup, just use Extended MAPI and the IProfAdmin interface to list their
profiles and pull the server info from there. As long as they're talking
to an Exchange server, you know ExMAPI will be there. See

http://support.microsoft.com/kb/170225

for sample code; that's setting it rather than reading it, but it should
be a starting point.


-- dan
 
Back
Top