【问题标题】:Why not connect PHP imap/pop3?为什么不连接 PHP imap/pop3?
【发布时间】:2021-06-08 22:54:44
【问题描述】:

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

有些日子尝试,尝试再尝试。阅读所有 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, $errno, $errstr, 30 ); // ok
// $fp = fsockopen ( "pop3.indamail.hu", 110, $errno, $errstr, 30 ); // ok
// $fp = fsockopen ( "pop3.indamail.hu", 995, $errno, $errstr, 30 ); // ok

// $fp = fsockopen ( "imap.indamail.hu", 992, $errno, $errstr, 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。

请帮帮我。

【问题讨论】:

  • 输入密码的时候,输入的不是登录密码,而是POP3/IMAP密码(来自他们网站的信息)。你用对了吗?
  • 现在,大多数网站都需要加密的 pop3(端口 995)或 IMAP(端口 993)
  • @MartinOsusky 是的,我使用正确。我知道。 webmail密码与pop3/imap密码不同。
  • @Max 我用几个测试编辑了这个问题。 993/995 端口无效。

标签: php imap pop3 imap-open


【解决方案1】:

有效。

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

没有评论。

【讨论】:

    猜你喜欢
    • 2012-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-01
    • 2011-09-04
    • 2012-08-30
    • 2015-04-20
    • 1970-01-01
    相关资源
    最近更新 更多