views:

206

answers:

1

Hi, the below code was working till few days back, but all of the sudden it started giving exception

<cfpop
            action="getall"
            name="qMessage"
            server="mail.forestweb.com"
            port="995"
            username="email***@industryintel.com"
            password="******"
            timeout="30"
            />

I am running this code every 10 minutes to fetch the emails. And getting following exceptions:

Message: An exception occurred when setting up mail server parameters.
Detail : This exception was caused by: javax.mail.MessagingException: Connect failed; nested exception is: java.net.SocketTimeoutException: Read timed out.

Can anyone please tell me why this is happening and if it has any solutions. Thanks in advance!!

A: 

Port 995 is typically used for SSL secured connections. Natively, CFPOP does not support SSL. However, there is a way, check out this post http://www.thecfguy.com/post.cfm/ssl-support-with-cfpop

Hope that helps.

Tom de Manincor