imap_open:无法打开流 [英] imap_open: Can't open stream
问题描述
我正在尝试将imap_open()用于我的FatCow电子邮件帐户.这是我的代码:
I'm trying to use imap_open() for my FatCow email account. Here's my code:
$mbox = imap_open("{imap.fatcow.com:143}", "account@domain.com", "password");
这是我收到的:
警告:imap_open()[function.imap-open]:无法在第2行的/home/alfatcom/public_html/test.php中打开流{imap.fatcow.com:143}.
Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.fatcow.com:143} in /home/alfatcom/public_html/test.php on line 2
也许是因为FatCow使用STARTTLS?无论如何,我在做什么错了?
Maybe the reason is that FatCow uses STARTTLS? Anyway, what am I doing wrong?
推荐答案
对于我来说,正是{domain:110/pop3/novalidate-cert}INBOX
帮助我修复了CLOSED IMAP连接断开(服务器响应)和域的证书失败的问题.
In my case it was {domain:110/pop3/novalidate-cert}INBOX
that helped me in fixing both the CLOSED IMAP connection broken (server response) and Certificate failure for domain.
确认您的端口以及是否使用启用了ssl
Confirm your ports and also whether you have ssl enabled using
openssl s_client -crlf -connect your-domain-name:port-number
这篇关于imap_open:无法打开流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!