下面的代碼中工作,直到幾天就回來,但它開始給例外發生異常成立時的郵件服務器參數.: 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.
任何人都可以請告訴我爲什麼發生這種情況,如果它有任何解決方案。
POP3服務器停機? – Henry 2010-05-27 18:21:46
添加debug =「true」屬性。你在日誌中看到了什麼,例如{cf_root} /runtime/logs/coldfusion-out.log? – Leigh 2010-05-27 22:31:03
詳細日誌記錄+1 如果郵件服務器已啓動並正在運行,並且您可以確定該端口995已在兩側打開(沒有新引入的防火牆限制等),則檢查郵件服務器的IP最近是否已更改。在這種情況下,它可能是底層JVM的DNS緩存問題。確保您嘗試重新啓動/重新啓動ColdFusion服務器。 – 2010-05-28 09:21:33