Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Re: how to query remote Exchange Box from Separate Webserver


Message #1 by "Adriano Basso" <adriano.basso@e...> on Wed, 7 Mar 2001 15:44:25
Hi Kim,

Did you work this out?  I am having the exact same symptom, with a 

slightly different setup:  1 webserver hitting a single exchange box 

attmpting to use the cdoex which is exclusively located on the exchange 

box.  Ideas?



Environment: Exchange2000, IIS5.0, Win2000

Thanks,

Adriano

> -----Original Message-----

> From: Kim Tan [mailto:kimytan@h...]

> Sent: 11 September 2000 07:24

> To: support@w...

> Subject: ADSI..CDO PROGRMMING WITH ASP

> 

> 

> As the owner of almost every wrox book.. "Thanks for the great help"..

>  

> But I have one problem that I cannot solve..

>  

> I have an Asp script page that queries an Exchange server ..  for the

> User@d...

>  

> everything works fine when the ASP script and the Exchange are on same

> Box.. I can populate my ASP script page

> with the records/values..

>  

> But when I load the ASP script on a Separate Webserver I get empty

> records.. NOTHING comes back..

>  

> I can ping the Exchange Server so I know it can be seen on the

> network..Plus I can check my mail in Outlook so I know

> it can connect to the remote Exchange Server..

>  

> PLATFORM:

>  

> NT4

> IIS4

> EXCHANGE 5.5

>  

> using MAPI and CDO..ASP

>  

> So how do i query the remote Exchange Box from Separate Webserver Using

> ASP.. and return with the records/values just like I am able to do if 

they

> are on the same machine ASPscripts/Exchange..

>  

> I need all the help I can get....

>  

> Thanks 

> Kim Tan

>  

Message #2 by "Adriano Basso" <adriano.basso@e...> on Fri, 9 Mar 2001 04:26:36
Fixed it:



    oConfig.Fields(CDO.cdoSendUsingMethod) = cdoSendUsingExchange

    oConfig.Fields(CDO.cdoMailboxURL) = "http://<domain>/exchange/<user>/"

    oConfig.Fields(CDO.cdoSendUserName) = "<domain>\<user>"

    oConfig.Fields(CDO.cdoSendPassword) = "<password>"

    oConfig.Fields(CDO.cdoSMTPServer) = "<server address>"

    oConfig.Fields(CDO.cdoSMTPConnectionTimeout) = 30

    oConfig.Fields.Update

...

    ' Send the message 

    oMessage.send







> Hi Kim,

> Did you work this out?  I am having the exact same symptom, with a 

> slightly different setup:  1 webserver hitting a single exchange box 

> attmpting to use the cdoex which is exclusively located on the exchange 

> box.  Ideas?

> 

> Environment: Exchange2000, IIS5.0, Win2000

> Thanks,

> Adriano

> > -----Original Message-----

> > From: Kim Tan [mailto:kimytan@h...]

> > Sent: 11 September 2000 07:24

> > To: support@w...

> > Subject: ADSI..CDO PROGRMMING WITH ASP

> > 

> > 

> > As the owner of almost every wrox book.. "Thanks for the great help"..

> >  

> > But I have one problem that I cannot solve..

> >  

> > I have an Asp script page that queries an Exchange server ..  for the

> > User@d...

> >  

> > everything works fine when the ASP script and the Exchange are on same

> > Box.. I can populate my ASP script page

> > with the records/values..

> >  

> > But when I load the ASP script on a Separate Webserver I get empty

> > records.. NOTHING comes back..

> >  

> > I can ping the Exchange Server so I know it can be seen on the

> > network..Plus I can check my mail in Outlook so I know

> > it can connect to the remote Exchange Server..

> >  

> > PLATFORM:

> >  

> > NT4

> > IIS4

> > EXCHANGE 5.5

> >  

> > using MAPI and CDO..ASP

> >  

> > So how do i query the remote Exchange Box from Separate Webserver Using

> > ASP.. and return with the records/values just like I am able to do if 

> they

> > are on the same machine ASPscripts/Exchange..

> >  

> > I need all the help I can get....

> >  

> > Thanks 

> > Kim Tan

> >  

Message #3 by hello dolly <nineballatlanta@y...> on Fri, 9 Mar 2001 09:49:41 -0800 (PST)
Great..



My prob now is ..



I am able to query all the info from the GAL but

I have to be logged in as Admin .. to get the info in

the description filed. ie Manager and the records from

who the Manager is like his email and his phone no.



So basicially we are querying two records the User and

his/her Manager this I am only able to do when logged

in as the Adiministrator..



I tried creating one user ie.. AspUser and give it

Admin rights .. all i can get back is the User Info

nothing from the other records (Manager Records)..



Nutshell .. my app is a help desk app..



New Employee logs in to asp Web page .. I collect the

NT login userName and query the GAL .. 



I bring up this his/her info .. I then list all the

items the New Employee needs .. like MsOffice etc..

when New Employee selects/checks email is sent to

helpdesk@d... and a copy goes to his/her

manager at xxx@d... this is where the

problem comes in .. I cannot get the Manager details

cause it is in Second Record (another user).. they are

listing the manager in the description field (Manager

more then 1 so cannot hard code..).. I can get it as

long as I am logged in as Administrator..



Any Ideas..



Thanks,

Kim Tan



--- Adriano Basso <adriano.basso@e...> wrote:

> Fixed it:

> 

>     oConfig.Fields(CDO.cdoSendUsingMethod) 

> cdoSendUsingExchange

>     oConfig.Fields(CDO.cdoMailboxURL) 

> "http://<domain>/exchange/<user>/"

>     oConfig.Fields(CDO.cdoSendUserName) 

> "<domain>\<user>"

>     oConfig.Fields(CDO.cdoSendPassword) 

> "<password>"

>     oConfig.Fields(CDO.cdoSMTPServer) = "<server

> address>"

>     oConfig.Fields(CDO.cdoSMTPConnectionTimeout) 

> 30

>     oConfig.Fields.Update

> ...

>     ' Send the message 

>     oMessage.send

> 

> 

> 

> > Hi Kim,

> > Did you work this out?  I am having the exact same

> symptom, with a 

> > slightly different setup:  1 webserver hitting a

> single exchange box 

> > attmpting to use the cdoex which is exclusively

> located on the exchange 

> > box.  Ideas?

> > 

> > Environment: Exchange2000, IIS5.0, Win2000

> > Thanks,

> > Adriano

> > > -----Original Message-----

> > > From: Kim Tan [mailto:kimytan@h...]

> > > Sent: 11 September 2000 07:24

> > > To: support@w...

> > > Subject: ADSI..CDO PROGRMMING WITH ASP

> > > 

> > > 

> > > As the owner of almost every wrox book.. "Thanks

> for the great help"..

> > >  

> > > But I have one problem that I cannot solve..

> > >  

> > > I have an Asp script page that queries an

> Exchange server ..  for the

> > > User@d...

> > >  

> > > everything works fine when the ASP script and

> the Exchange are on same

> > > Box.. I can populate my ASP script page

> > > with the records/values..

> > >  

> > > But when I load the ASP script on a Separate

> Webserver I get empty

> > > records.. NOTHING comes back..

> > >  

> > > I can ping the Exchange Server so I know it can

> be seen on the

> > > network..Plus I can check my mail in Outlook so

> I know

> > > it can connect to the remote Exchange Server..

> > >  

> > > PLATFORM:

> > >  

> > > NT4

> > > IIS4

> > > EXCHANGE 5.5

> > >  

> > > using MAPI and CDO..ASP

> > >  

> > > So how do i query the remote Exchange Box from

> Separate Webserver Using

> > > ASP.. and return with the records/values just

> like I am able to do if 

> > they

> > > are on the same machine ASPscripts/Exchange..

> > >  

> > > I need all the help I can get....

> > >  

> > > Thanks 

> > > Kim Tan

> > >  

> 

  Return to Index