Problem with php imap receiving qq mail
伊谢尔伦
伊谢尔伦 2017-05-24 11:31:20
0
1
923

Write a code to receive emails, but it prompts that the connection cannot be made. QQ mailbox has enabled imap. Paste the code below. Could you please help me?

$host = '{imap.qq.com:993/imap/ssl}INBOX';
$user = '*****';
$pass = '*****';
$inbox = imap_open($host, $user, $pass)or die("can't connect: " . imap_last_error());   
$mailboxes = imap_list($inbox, $host, '*');
$mailboxes = str_replace($host, '', $mailboxes);
print_r($mailboxes);

Paste the error code: From the Tencent mailbox, you can see that the address is imap.qq.com and it will prompt an error. .
Warning: imap_open(): Couldn't open stream {imap.qq.com:993/imap/ssl}INBOX in D:phpStudyWWWimap.php on line 5
can't connect: Please using authorized code to login. More information at http://service.mail.qq.com/cg...
Notice: Unknown: Please using authorized code to login. More information at http://service.mail.qq.com/ cg... (errflg=1) in Unknown on line 0

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
大家讲道理

Did you log in without using the authorization code?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!