我正在尝试从我的Gmail帐户中获取附件。
代码是
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = 'chrisvoges@gmail.com';
$password = 'abcdefghi';
$inbox = imap_open("{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX",
$username, $password, NULL, 1,array('DISABLE_AUTHENTICATOR' => 'PLAIN')) or
die(var_dump(imap_errors()));
我还通过gmail设置允许了imap
错误
array(2) { [0]=> string(107) "[ALERT] Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)" [1]=> string(23) "Too many login failures" }
什么是错的。此外,此过程是否需要ssl证书?