iCloud php imap is not connecting


iCloud php imap is not connecting

我正在尝试从我的网站访问我的icloud邮箱。我使用的代码在gmail上工作正常,但是当我尝试连接到我的iCloud帐户时,出现此错误:

警告:imap_open() [function.imap-open]:无法在第 6 行打开/hp/bd/ab/lq/www/rechner/Messages/MailAusgabe.php 中的流 {imap.mail.me.com:993/ssl/imap}

这是我的代码:

$mbox = imap_open("{imap.mail.me.com:993/ssl/imap}", "myemail@me.com", "mypassword");

以及这个:

$mbox = imap_open("{imap.mail.me.com:993/ssl/imap}INBOX", "myemail@me.com", "mypassword");

我已经更改了密码并尝试了其他一些帐户,但没有成功。

尝试将 this: "{imap.mail.me.com:993/ssl/imap}" 替换为 this: {imap.mail.me.com:993/imap/ssl}