php IMAP connection failed

╄→гoц情女王★ 提交于 2019-12-13 01:50:28

问题


I am developing a crawler to get data from email. I have 3 email addresses, which I have to use for it. On my local machine all of 3 connections with given credentials are working fine. But when I have upload to server 1 of them is working and rest of 2 are giving

Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)

These 3 inboxes are on shared hosting and I using port 143 to read data.

In ssh I get this error:

Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)PHP Notice: Unknown: Retrying CRAM-MD5 authentication after LOGIN failed. (errflg=1) in Unknown on line 0 PHP Notice: Unknown: Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate) (errflg=2)


回答1:


It was the email box type problem. That email box which not going to open was not of IMAP type. So it gives problem in openning with imap_open() function



来源:https://stackoverflow.com/questions/12281609/php-imap-connection-failed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!