问题
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