Click to See Complete Forum and Search --> : coldfusion: pulling mail off a MS Exchange Server (how?)


angrycoder
06-07-2005, 06:35 PM
Does anyone know if it is possible to connect to a Microsoft Exchange server using <cfpop>? I set all the parameters and I get either this: This exception was caused by: javax.mail.AuthenticationFailedException: There is no such mailbox on this server

or i get this (if I play with the server and/or login info): This exception was caused by: javax.mail.MessagingException: Connect failed; nested exception is: java.net.ConnectException: Connection refused: connect

the "no such mailbox" error leads me to believe you can't use cfpop here since I would think i need to specify a username and mailbox name, but there is no "mailbox" attribute in cfpop.

I've read it's possible to create a COM object using CDO (CDOSYS) to utilize MAPI to connect to the exchange server to accomplish the same thing. However, every tutorial or example of this i've googled for (or searched for on MSDN) only gives help on how to send email messages, not check for them. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/exchanchor/htms/msexchsvr_cdo_top.asp)

has anyone successfully grabbed mail off a MS Exchange server using coldfusion?

ray326
06-08-2005, 12:24 AM
Looks like cfpop is just a Java custom tag library acting as a wrapper to the JavaMail interface. You might have more luck looking for "java cdo mail" or "java cdonts" or "java cdosys exchange" or such.

anasnyckers
12-02-2005, 01:55 PM
Hi angrycoder
I'm trying to do the same thing (get mail from Exchange to CF).
Did you ever solve this???
I beleive that cfpop won't work because we don't use pop3 and I found another tag that works for imap (cxf_imap4) but we don't use that either...
Have you found anything that works for Exchange with mapi????
Tks
A