Thursday, March 29, 2012

SMTP Email Address - Exchange 2000 - ASP.NET

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

- Dave

"Tersia Ehlert" <Tersia.Ehlert@dotnet.itags.org.hotmail.com> wrote in message
news:%23F3FtlvFEHA.2208@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
> 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
>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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

0 comments:

Post a Comment