微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

为什么不连接PHP imap/pop3?

如何解决为什么不连接PHP imap/pop3?

对不起,我会说一点英语。

有些日子尝试,尝试,再尝试。阅读所有 stackoverflow 问题并回答此问题,但没有帮助。

我只想要一个 imap 连接。

我尝试了一些虚拟主机,但不起作用。

请帮帮我。

// $foo = "{pop3.indamail.hu:110}"; // [CLOSED] IMAP connection broken (server response)
// $foo = "{pop3.indamail.hu:110/pop3}"; // Can not authenticate to POP3 server: POP3 connection broken in response
// $foo = "{imap.indamail.hu:143}"; // Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
// $foo = "{imap.indamail.hu:143/imap}"; // Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
// $foo = "{pop3.indamail.hu:110/pop3}INBox"; // Can not authenticate to POP3 server: POP3 connection broken in response
// $foo = "{imap.indamail.hu:143/imap}INBox"; // Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
// $foo = "{imap.indamail.hu:143/imap/tls}INBox"; // Unable to negotiate TLS with this server
// $foo = "{imap.indamail.hu:143/imap/notls}INBox"; // Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
// $foo = "{imap.indamail.hu:143/imap/novalidate-cert}INBox"; // Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
// $foo = "{imap.indamail.hu:993/imap}"; // [CLOSED] IMAP connection broken (server response)
// $foo = "{pop3.indamail.hu:995/pop3}"; // POP3 connection broken in response
// $foo = "{imap.indamail.hu:993/imap/ssl/novalidate-cert}"; // Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
// $foo = "{pop3.indamail.hu:995/pop3/ssl/novalidate-cert}"; // Can not authenticate to POP3 server: POP3 connection broken in response
$mBox = imap_open ( $foo,"********@indamail.hu","********" ) or die ( imap_last_error () );

错误,请查看代码

我尝试过,但还好:

// $fp = fsockopen ( "imap.indamail.hu",143,$errno,$errstr,30 ); // ok
// $fp = fsockopen ( "imap.indamail.hu",993,30 ); // ok
// $fp = fsockopen ( "pop3.indamail.hu",110,995,30 ); // ok

// $fp = fsockopen ( "imap.indamail.hu",992,30 ); // Connection timed out (110)

if ( ! $fp ) {
    echo "$errstr ($errno)";
} else {
    echo "ok";
    fclose ( $fp );
}

重要!只能访问国家:HU、SK、AT、RO、HR。我的 IP 地址是 HU/Hungary。我阅读了手册,我认为只有这个端口:pop3:110 和 imap:143。

请帮帮我。

解决方法

它有效。

$e = '********@indamail.hu';
$s = '{imap.indamail.hu:143/authuser=' . $e . '}';
$mbox = imap_open ( $s,$e,'********' ) or die ( imap_last_error () );

没有评论。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。