Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Office365 working with CFEXCHANGECONNECTION

I couldn't find much useful information on opening a CFEXCHANGE connection to Office365. After some playing around I got it to work. I am posting this here for informational purposes as it might be useful for others.

like image 362
Michael Avatar asked Mar 26 '14 11:03

Michael


Video Answer


1 Answers

Because of the need to specify serverversion="2010" this will only work on CF10.

To establish a connection use the following code:

<cfexchangeConnection 
    action="open" 
    username ="#emailAddressForOffice365User#" 
    password="#passwordForOffice365User#"
    server="outlook.office365.com" 
    protocol="https"
    connection="myExchangeConnection"
    serverversion="2010">

The Office365 account I connected to had the settings which were set when it was created (i.e. I did not have to change any account settings for this to work).

like image 169
Michael Avatar answered Oct 24 '22 23:10

Michael