RE: ColdFusion & Microsoft Exchange Server

2002-06-15 Thread Dave Watts

> Okay, heres the problem/situation
> 
> Network Location 1 : ColdFusion Application Server
> 
> Network Location 2 : Microsoft Exchange Server
> 
> Whats the deal with connecting these two together (and I 
> have been to cfcomet, there is nothing ;-). Since they are 
> over a network whats the deal with  and connecting 
> to Microsoft Exchange server?
> 
> The goal is to allow multiple users to have web access to 
> their calendar without the Outlook Web Interface.

You can connect via COM to Exchange using the CDO library. There's lots of
information about CDO on MSDN (http://msdn.microsoft.com/). There's also a
good book covering CDO from ASP, called "ADSI CDO ASP", from Wrox Press. CDO
is the interface that the Outlook Web Access application uses, I'm sure.

Unfortunately, I don't know how easy this'll be from CF, since CF does such
a bad job with COM in general and with MS-specific interfaces like CDO and
ADSI in particular. I found it extremely difficult to work with ADSI from
CF, compared with ASP. Also, if you're using CF 5, you can use the
CFIMPERSONATE tag to wrap your CDO calls so that you can impersonate a
specific Exchange user, but there's no equivalent in CF MX, which is kind of
a bummer. Note that CFIMPERSONATE requires that you run the CF server as
SYSTEM.

> What don't you just VPN the two networks together into a 
> single virtual network, so that you don't have these issues?

While I agree that this would be a good idea if they're not already on the
same network, this won't solve the programmatic problem of how to get CF to
talk to Exchange.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-12 Thread Neil Clark - =TMM=

Yep.thanks for your help.




-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: 10 June 2002 22:02
To: CF-Talk
Subject: RE: ColdFusion & Microsoft Exchange Server

> Still no luck? :-(

Well, honestly, you might want to try doing the same thing from ASP,
just to
make sure you've got the syntax right and that it works from your
server.
Then, try to port your working ASP example to CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Dave Watts

> Still no luck? :-(

Well, honestly, you might want to try doing the same thing from ASP, just to
make sure you've got the syntax right and that it works from your server.
Then, try to port your working ASP example to CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Neil Clark - =TMM=

Still no luck? :-(







Neil Clark
Team Macromedia
http://www.macromedia.com/go/team

Announcing Macromedia MX!! 
http://www.macromedia.com/software/trial/




-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: 10 June 2002 18:08
To: CF-Talk
Subject: RE: ColdFusion & Microsoft Exchange Server

> That's cool info, however one of the problems with this code 
> block :
> 
>  
>   username = "**"; 
>   password = "***"; 
>   servername = "**"; 
>   mailbox = "*"; 
>   objExchangeSession = createObject("COM","MAPI.Session"); 
>   objExchangeSession.Logon('#username#','#password#',false,
>   true,-1,false,'#servername# #chr(13)# #mailbox#'); 
> 
> 
> If the the last parameter from the Logon method is dropped, it 
> gives a failed validation error. All the obvious things have 
> been tried.
> 
> The docs say that the format for the profileinfo parameter is:
> 
>  & vbLf & 
> 
> Weird?

You might try using Chr(10), which is a line feed, instead of Chr(13),
which
is a carriage return.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Dave Watts

> That's cool info, however one of the problems with this code 
> block :
> 
>  
>   username = "**"; 
>   password = "***"; 
>   servername = "**"; 
>   mailbox = "*"; 
>   objExchangeSession = createObject("COM","MAPI.Session"); 
>   objExchangeSession.Logon('#username#','#password#',false,
>   true,-1,false,'#servername# #chr(13)# #mailbox#'); 
> 
> 
> If the the last parameter from the Logon method is dropped, it 
> gives a failed validation error. All the obvious things have 
> been tried.
> 
> The docs say that the format for the profileinfo parameter is:
> 
>  & vbLf & 
> 
> Weird?

You might try using Chr(10), which is a line feed, instead of Chr(13), which
is a carriage return.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Neil Clark - =TMM=

It appears that When the connection is created to a new CDO session
object by calling new Session() the error is 80010106 which has to do
with bed threading models - anyong know how to fix this or is anyone
able to talk to CDO???







Neil Clark
Team Macromedia
http://www.macromedia.com/go/team

Announcing Macromedia MX!! 
http://www.macromedia.com/software/trial/




-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: 10 June 2002 17:12
To: CF-Talk
Subject: RE: ColdFusion & Microsoft Exchange Server

> Okay, heres the problem/situation
> 
> Network Location 1 : ColdFusion Application Server
> 
> Network Location 2 : Microsoft Exchange Server
> 
> Whats the deal with connecting these two together (and I 
> have been to cfcomet, there is nothing ;-). Since they are 
> over a network whats the deal with  and connecting 
> to Microsoft Exchange server?
> 
> The goal is to allow multiple users to have web access to 
> their calendar without the Outlook Web Interface.

You can connect via COM to Exchange using the CDO library. There's lots
of
information about CDO on MSDN (http://msdn.microsoft.com/). There's also
a
good book covering CDO from ASP, called "ADSI CDO ASP", from Wrox Press.
CDO
is the interface that the Outlook Web Access application uses, I'm sure.

Unfortunately, I don't know how easy this'll be from CF, since CF does
such
a bad job with COM in general and with MS-specific interfaces like CDO
and
ADSI in particular. I found it extremely difficult to work with ADSI
from
CF, compared with ASP. Also, if you're using CF 5, you can use the
CFIMPERSONATE tag to wrap your CDO calls so that you can impersonate a
specific Exchange user, but there's no equivalent in CF MX, which is
kind of
a bummer. Note that CFIMPERSONATE requires that you run the CF server as
SYSTEM.

> What don't you just VPN the two networks together into a 
> single virtual network, so that you don't have these issues?

While I agree that this would be a good idea if they're not already on
the
same network, this won't solve the programmatic problem of how to get CF
to
talk to Exchange.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Neil Clark - =TMM=

Some updated info,

 
username = "test"; 
password = "test"; 
servername = "NTS_4"; 
mailbox = "Office\test"; 
profileInfo = servername & mailbox; 
objExchangeSession = createObject("COM","MAPI.Session"); 
objExchangeSession.Logon(username,password,false,true,0,true,profileInfo
); 


though still wont work!?






Neil Clark
Team Macromedia
http://www.macromedia.com/go/team

Announcing Macromedia MX!! 
http://www.macromedia.com/software/trial/




-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: 10 June 2002 17:12
To: CF-Talk
Subject: RE: ColdFusion & Microsoft Exchange Server

> Okay, heres the problem/situation
> 
> Network Location 1 : ColdFusion Application Server
> 
> Network Location 2 : Microsoft Exchange Server
> 
> Whats the deal with connecting these two together (and I 
> have been to cfcomet, there is nothing ;-). Since they are 
> over a network whats the deal with  and connecting 
> to Microsoft Exchange server?
> 
> The goal is to allow multiple users to have web access to 
> their calendar without the Outlook Web Interface.

You can connect via COM to Exchange using the CDO library. There's lots
of
information about CDO on MSDN (http://msdn.microsoft.com/). There's also
a
good book covering CDO from ASP, called "ADSI CDO ASP", from Wrox Press.
CDO
is the interface that the Outlook Web Access application uses, I'm sure.

Unfortunately, I don't know how easy this'll be from CF, since CF does
such
a bad job with COM in general and with MS-specific interfaces like CDO
and
ADSI in particular. I found it extremely difficult to work with ADSI
from
CF, compared with ASP. Also, if you're using CF 5, you can use the
CFIMPERSONATE tag to wrap your CDO calls so that you can impersonate a
specific Exchange user, but there's no equivalent in CF MX, which is
kind of
a bummer. Note that CFIMPERSONATE requires that you run the CF server as
SYSTEM.

> What don't you just VPN the two networks together into a 
> single virtual network, so that you don't have these issues?

While I agree that this would be a good idea if they're not already on
the
same network, this won't solve the programmatic problem of how to get CF
to
talk to Exchange.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Neil Clark - =TMM=

Thanks Dave,

ThatÂ’s cool info, however one of the problems with this code block :

 
username = "**"; 
password = "***"; 
servername = "**"; 
mailbox = "*"; 
objExchangeSession = createObject("COM","MAPI.Session"); 
objExchangeSession.Logon('#username#','#password#',false,true,-
1,false,'#servername# #chr(13)# #mailbox#'); 


If the the last parameter from the Logon method is dropped, it gives a
failed validation error.  All the obvious things have been tried.

The docs say that the format for the profileinfo parameter is:

 & vbLf & 

Weird?






Neil Clark
Team Macromedia
http://www.macromedia.com/go/team

Announcing Macromedia MX!! 
http://www.macromedia.com/software/trial/




-Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: 10 June 2002 17:12
To: CF-Talk
Subject: RE: ColdFusion & Microsoft Exchange Server

> Okay, heres the problem/situation
> 
> Network Location 1 : ColdFusion Application Server
> 
> Network Location 2 : Microsoft Exchange Server
> 
> Whats the deal with connecting these two together (and I 
> have been to cfcomet, there is nothing ;-). Since they are 
> over a network whats the deal with  and connecting 
> to Microsoft Exchange server?
> 
> The goal is to allow multiple users to have web access to 
> their calendar without the Outlook Web Interface.

You can connect via COM to Exchange using the CDO library. There's lots
of
information about CDO on MSDN (http://msdn.microsoft.com/). There's also
a
good book covering CDO from ASP, called "ADSI CDO ASP", from Wrox Press.
CDO
is the interface that the Outlook Web Access application uses, I'm sure.

Unfortunately, I don't know how easy this'll be from CF, since CF does
such
a bad job with COM in general and with MS-specific interfaces like CDO
and
ADSI in particular. I found it extremely difficult to work with ADSI
from
CF, compared with ASP. Also, if you're using CF 5, you can use the
CFIMPERSONATE tag to wrap your CDO calls so that you can impersonate a
specific Exchange user, but there's no equivalent in CF MX, which is
kind of
a bummer. Note that CFIMPERSONATE requires that you run the CF server as
SYSTEM.

> What don't you just VPN the two networks together into a 
> single virtual network, so that you don't have these issues?

While I agree that this would be a good idea if they're not already on
the
same network, this won't solve the programmatic problem of how to get CF
to
talk to Exchange.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Dave Watts

> Okay, heres the problem/situation
> 
> Network Location 1 : ColdFusion Application Server
> 
> Network Location 2 : Microsoft Exchange Server
> 
> Whats the deal with connecting these two together (and I 
> have been to cfcomet, there is nothing ;-). Since they are 
> over a network whats the deal with  and connecting 
> to Microsoft Exchange server?
> 
> The goal is to allow multiple users to have web access to 
> their calendar without the Outlook Web Interface.

You can connect via COM to Exchange using the CDO library. There's lots of
information about CDO on MSDN (http://msdn.microsoft.com/). There's also a
good book covering CDO from ASP, called "ADSI CDO ASP", from Wrox Press. CDO
is the interface that the Outlook Web Access application uses, I'm sure.

Unfortunately, I don't know how easy this'll be from CF, since CF does such
a bad job with COM in general and with MS-specific interfaces like CDO and
ADSI in particular. I found it extremely difficult to work with ADSI from
CF, compared with ASP. Also, if you're using CF 5, you can use the
CFIMPERSONATE tag to wrap your CDO calls so that you can impersonate a
specific Exchange user, but there's no equivalent in CF MX, which is kind of
a bummer. Note that CFIMPERSONATE requires that you run the CF server as
SYSTEM.

> What don't you just VPN the two networks together into a 
> single virtual network, so that you don't have these issues?

While I agree that this would be a good idea if they're not already on the
same network, this won't solve the programmatic problem of how to get CF to
talk to Exchange.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Matt Liotta

What don't you just VPN the two networks together into a single virtual
network, so that you don't have these issues?

-Matt

> -Original Message-
> From: Neil Clark - =TMM= [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 8:42 AM
> To: CF-Talk
> Subject: ColdFusion & Microsoft Exchange Server
> 
> Okay, heres the problem/situation
> 
> Network Location 1 : ColdFusion Application Server
> 
> Network Location 2 : Microsoft Exchange Server
> 
> Whats the deal with connecting these two together (and I have been to
> cfcomet, there is nothing ;-).  Since they are over a network whats
the
> deal with  and connecting to Microsoft Exchange server?
> 
> The goal is to allow multiple users to have web access to their
calendar
> without the Outlook Web Interface.
> 
> Has anyone completed any work in this vain?
> 
> Thanks
> 
> - Neil
> 
> 
> 
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



ColdFusion & Microsoft Exchange Server

2002-06-10 Thread Neil Clark - =TMM=

Okay, heres the problem/situation

Network Location 1 : ColdFusion Application Server

Network Location 2 : Microsoft Exchange Server

Whats the deal with connecting these two together (and I have been to
cfcomet, there is nothing ;-).  Since they are over a network whats the
deal with  and connecting to Microsoft Exchange server?

The goal is to allow multiple users to have web access to their calendar
without the Outlook Web Interface.

Has anyone completed any work in this vain?

Thanks

- Neil


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists