Posted in ColdFusion | Posted on 04-07-2008 | 3,538 views
Believe it or not - I think the one feature of ColdFusion 8 I haven't tested at all is the Microsoft Exchange functionality. It looked cool and all (check out Scott's nice article on the feature) but I had no way of testing it. Today I ran across this article:
Keep in Sync With a Free Exchange Server
This describes a free Exchange service at Mail2Web. I signed up and then pointed my ColdFusion code at the account and it worked like a charm. I just tested mail and contacts, but it looks like it supports everything ColdFusion's Exchange API does.


thanks for this usefull hint. I have some issue, with exchange a while ago. I always thought, it's the exchange 2007 which is responsible for that. But seems, mail2 web works on exchange 2003.
The issue occures when trying to get contacts or calendar entries. The error message is always "Requested Exchange resource was not found on the server." But when i try to get my mails, with the same connection, it works fine. Any suggestion?
Code for calendar:
<cfexchangeconnection action="open" connection="conn"
server="exchange.mail2web.com"
username="mymail@mail2web.com"
password="mypass" />
<cfexchangecalendar action="get" name="cal" connection="conn">
<cfexchangeconnection action="close" connection="conn" />
<cfdump var="#cal#">
If i replace cfexchangecalendar with cfexchangemail it dumps my emails as expected.
Greets from Germany
Patrick
i'm using 801. I tried the Calendar example on both, mail2web and exchange 2007. Failed on both, only the cfexchangemail works for me. I first thought the issue comes from Exchange 2007, because MS changed something. But it also fails on mail2web, using Exchange 2003. Well, i'll try to post it on Adobe. Thanks for the link!
That being said, I have worked successfully with CFexchangecalendar in our private environment with both Exchange 03 and 07. I have always included the mailboxName in the connection and the exchangefilter within the exchangecalendar call. Unlike a mailbox a which has a definite size, a calendar may not so i never thought to not include it. I did just test it without the filter and it did still work. It seemed to retrieve the events in this Calendar Year.
But i would try doing the following after creating a few events:
<cfexchangecalendar action="get" name="cal" connection="conn"> <cfexchangefilter name="starttime" from="SOME_START_DATE" to="SOME_END_DATE" />
</cfexchangecalendar>
The only issue we have seen is when the user's exchange acccount was set to something other than English. It seems to look for the folder name "CALENDAR" within the exchange folder structure and throws an error if that is not the case. In this scenario we found adding ExchangeServerLanguage = "" helped to stop the error, but it took a really long time to complete.
grtz from the Netherlands
Martijn van der Woud
Thank you so much!!
I am guessing the ExchangeServerLanguage is important, because it determines the name of the folders in which tasks, calendarevents, etc. are stored. That's probably why cfexchangemail can work without specifying the correct language, because the foldername "Inbox" is used in many different languages (it is used in "dutch").
Might be useful as a comment in the Adobe CF8 livedocs, but comment moderation is slow as hell there, and Adobe does not provide any feedback. :(
Martijn van der Woud
[Add Comment] [Subscribe to Comments]