2010-05-27 59 views
3

下面的代碼中工作,直到幾天就回來,但它開始給例外發生異常成立時的郵件服務器參數.: cfpop

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

我這段代碼運行,每10分鐘獲取電子郵件。並獲得以下例外:

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. 

任何人都可以請告訴我爲什麼發生這種情況,如果它有任何解決方案。

+0

POP3服務器停機? – Henry 2010-05-27 18:21:46

+1

添加debug =「true」屬性。你在日誌中看到了什麼,例如{cf_root} /runtime/logs/coldfusion-out.log? – Leigh 2010-05-27 22:31:03

+2

詳細日誌記錄+1 如果郵件服務器已啓動並正在運行,並且您可以確定該端口995已在兩側打開(沒有新引入的防火牆限制等),則檢查郵件服務器的IP最近是否已更改。在這種情況下,它可能是底層JVM的DNS緩存問題。確保您嘗試重新啓動/重新啓動ColdFusion服務器。 – 2010-05-28 09:21:33

回答

3

當我遇到這個問題時,我的根本原因是我的硬盤快滿了,並且在spool目錄中有一些無效的spool文件。

我清除了我的cf服務器所在硬盤上的一些空間,並且電子郵件開始再次發送。

相關問題