使用 php IMAP 时出现垃圾字符
<b>Text in bold</b> getting converted to *Text in bold*
words like shouldn't are getting converted to shouldn=92t
我正在使用的代码是
$inbox = imap_open('host', 'un', 'pw') or die('Cannot connect to Mail box: ' . print_r(imap_errors()));
$mails = imap_search($inbox,'UNSEEN');
if($mails) {
foreach($mails as $mail) {
echo $message = imap_fetchbody($inbox, $mail, 1);
echo "<br><br>";
}
}
imap_close($inbox);
有人可以帮我找出问题所在吗?