php IMAP连接失败 [英] php IMAP connection failed
问题描述
我正在开发一个抓取工具来从电子邮件获取数据。我有3个电子邮件地址,我必须使用它。在我的本地机器上,所有3个具有给定凭据的连接正常工作。但是当我上传到服务器1时,他们正在工作,其余的2个给予
无法对IMAP服务器进行身份验证:关闭] IMAP连接断开(验证)
这3个收件箱位于共享主机上,我使用端口 143
来读取数据。
在ssh中我收到这个错误:
无法验证到IMAP服务器:[CLOSED] IMAP连接断开(认证)PHP注意:未知:LOGIN失败后重试CRAM-MD5身份验证。 (errflg = 1)in Unknown第0行
PHP注意:未知:无法向IMAP服务器进行身份验证:[CLOSED] IMAP连接已断开(验证)(errflg = 2)
< blockquote>
解决方案这是电子邮件箱类型的问题。不打开的电子邮件箱不是IMAP类型的。所以它使用imap_open()函数
在openning中出现问题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)
解决方案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
这篇关于php IMAP连接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!