问题描述
对不起,我会说一点英语。
有些日子尝试,尝试,再尝试。阅读所有 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 () );
没有评论。