没有,主要是时间来不及了,那位大哥有现成的class最好了,要多少分都可以!!!

解决方案 »

  1.   

    $mbox=imap_open("{localhost:110}inbox","xqi8","01022112");
    $message=imap_body($mbox,1);
    imap_close($mbox);
    echo $message;
      

  2.   

    $server = "{263.net/pop3}";
    $mailbox = "inbox";
    $mailaccount = "xxxxx";//帐号
    $mailpasswd = "yyyyy";//密码
    $stream = imap_open($server.$mailbox,$mailaccount,$mailpasswd);
    $mail_number = imap_num_msg($stream);//信件个数for($i=1;$i<=$mail_number;$i++)
    {
    $mail_header= imap_headerinfo($stream, $msgnum);
    $subject = $mail_header->subject;//标题
    $from = $mail_header->fromaddress;//发件人
    $date = $mail_header->date;//日期
    echo "<a href=readmail.php>$subject</a>  $from  $date <br>";
    }
      

  3.   

    -------读邮件------
    $stream = imap_open($server.$mailbox,$mailaccount,$mailpasswd);
    $struct = imap_fetchstructure($stream, $number);
    $encoding = $struct->encoding;
    $body = imap_fetchbody ($stream, $number,1);
    switch($encoding)
    {
    case 3:
    $body = imap_base64($body);
    $body = nl2br($body);
    break;
    case 4:
    $body = imap_qprint($body);
    break;
    }