coldfusion交换连接到Office 365

时间:2013-05-26 21:58:33

标签: coldfusion exchange-server coldfusion-9 office365

我正在尝试为我们的office365服务器设置cfexchangeconnection以检索日历设置但无法正确获取连接设置。

如果我这样做:

<cfexchangeconnection
    action = "open"
    connection = "exCon"
    server = "outlook.office365.com"
    username = "email@address"
    password = "**********"
    port="995">

我得到500:无法登录到Exchange服务器。验证服务器名称,用户名和密码。

我不知道这是否意味着它是一个身份验证问题,还是我的服务器名称错误

如果我关闭端口设置,我会收到同样的错误。

服务器名称是使用imap或pop设置邮件的名称。用户名只是电子邮件,密码很明显....

将协议切换为https我收到以下错误:

Cannot access Exchange server as a web application at outlook.office365.com.
Ensure that the Exchange web application is configured in IIS and Web Service Extension for the Exchange server is allowed. HTTP response code : 404

1 个答案:

答案 0 :(得分:0)

以下配置对我有用。您必须使用keytool.exe安装证书。确保添加serverversion,然后选择2010.此外,请确保指定https协议。默认值为2007。

<cfexchangeconnection action="open"
     username="#username#"
     password="#password#"
     mailboxname="#mailboxname#"
     server="outlook.office365.com"
     protocol="https"
     serverversion="2010"
     connection="testconn1"
     formBasedAuthentication="true"
     formBasedAuthenticationURL="https://outlook.office365.com/owa/auth/owaauth.dll">