0

谁能告诉我如何使用 php 中的 imap_open() 函数连接到 rediff 邮件服务器。我尝试使用以下代码:

$this->conn = imap_open('{'.$this->server.'}INBOX', 'easyloanemi@rediffmail.com', 'password')or die(print_R(imap_errors()));

并得到以下错误

严重性:警告

消息:imap_open():无法打开流 {imap.rediffmail.com/notls/norsh}INBOX

和 imap_errors() 返回

Array ( [0] => LOGIN failed: Login failed. Either your user name or your password was wrong. Please try again, and if the problem persists, please contact your system administrator. 
[1] => LOGIN failed: Login failed. Either your user name or your password was wrong. Please try again, and if the problem persists, please contact your system administrator. 
[2] => LOGIN failed: Login failed. Either your user name or your password was wrong. Please try again, and if the problem persists, please contact your system administrator. 
[3] => Too many login failures )

如果我使用凭据直接访问 rediffmail 网站,我就可以登录

4

1 回答 1

0

用户/密码错误,尝试不使用@rediffmail.com 或检查您的messagerie 的登录参数以允许连接imap。其他请参阅如何使用 SMTP 登录。

于 2014-10-29T07:28:57.453 回答