时间:2021-07-01 10:21:17 帮助过:26人阅读
<?php $mailServer="mail.staff.sina.com.cn"; $mailLink="{mail.staff.sina.com.cn:995/pop3/ssl}INBOX"; $mailUser = 'zekai'; $mailPass = 'password'; $stream = @imap_open($mailLink,$mailUser,$mailPass); $totalrows = imap_num_msg($stream); var_dump($totalrows); for($i=$totalrows;$i>=$totalrows;$i--) { $headers = @imap_header($stream, $i); $mail_header= imap_headerinfo($stream, $i); var_dump ($mail_header);die; $subject = $mail_header->subject; $subject=decode_mime($subject); echo $subject;die; } ?>
相关教程:PHP视频教程
以上就是【PHP】如何使用imap协议接收邮件的详细内容,更多请关注Gxl网其它相关文章!