My company recently migrated to Office 365 for email.  Previously, we were 
hosting our own mail server and my app had no problems connecting to it 
with cfimap.  Now, for some reason, it doesn't want to connect to Office 
365.  I can't seem to find any error logs as to why it's not making the 
connection, either.  Has anyone had any luck with Office 365?  Here's the 
code I'm using to try to open the connection:

<cfimap action="open" connection="mailConnection" server="
outlook.office365.com" port="993" secure="true" username="[email protected]" 
password="pword" timeout="300">
<cfimap action="listmail" connection="mailConnection" name="mail" 
folder="Inbox">
<cfloop query="mail">
    <cfimap action="readmail" connection="mailConnection" folder="Inbox" 
messageid="#mail.id#" name="message">
    <cfdump var="#message#">
</cfloop>
<cfdump var="#mail#"><cfdump var="#mailConnection#">

Dumping "mail" returns an empty query (I've confirmed there's definitely 
mail in the Inbox).  Dumping "mailConnection" throws a "variable does not 
exist" error.

Something interesting that I've noticed that may or may not provide any 
revelations: The first time I run this code, it the page processes for 
about 10-15 seconds.  Subsequent executions only last for a second.  Some 
sort of caching, maybe?

I'm inclined to this I'm overlooking something ridiculously simple.  Any 
advice or pointers would be greatly appreciated.

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to