jjzjj

foundPart

全部标签

php - 为什么此邮件消息不能正确解码?

我有这个代码。它来自ZendReadingMail示例。$message=$mail->getMessage(1);//outputfirsttext/plainpart$foundPart=null;foreach(newRecursiveIteratorIterator($mail->getMessage(1))as$part){try{if(strtok($part->contentType,';')=='text/plain'){$foundPart=$part;break;}}catch(Zend_Mail_Exception$e){//ignore}}if(!$foundP