SMTP Email Address - Exchange 2000 - ASP.NET

T

Tersia Ehlert

Hi All



I am running a ASP.NET Web form on which I ask the user to complete a new
employee's name, surname, SMTP email address and some other fields...

I need to verify that the SMTP email address exists on the company exchange
server before the form can be submitted for further processing.



In ASP I have used CDO 1.21 to logon to a mailbox, whereafter I have
filtered the GAL with the name and surname of the contact to return the SMTP
email address(es) from the exchange server.



In ASP.NET I have a few issues surrounding this code, thus I wondered if
there is another way (not MAPI / Outlook Object Model) for finding the SMTP
email address of a person by using the person's name and surname as a filter
on an exchange server



Thanks

Tersia Ehlert
 
D

Dave Mills [MVP]

Use the routines under the System.DirectoryServices namespace to query a
global catalog server with the following query
(|(proxyAddresses=smtp:smtpaddresshere)(mail=smtpaddresshere)).

- Dave
 
K

KatB

Hi Dave,

Would you kindly give an example of using System.DirectoryServices for
creating a dataset of users from the Exchange GAL (email, first name,
last name) that I could use for a dropdown list?

I've been searching and haven't been able to pull it together...would be
much appreciated!

Thanks, Kat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top