无法使用php imap从电子邮件接收内嵌图像?

时间:2017-02-04 09:50:02

标签: php imap

我在下面的代码中尝试这个,无法使用php imap从电子邮件接收内嵌图像?

$emailAddress = "demo@demo.com" ; 
$emailPassword = "ps";
$domainURL = 'demo.com'; 
$useHTTPS = true; 
$inbox = imap_open('{'.$domainURL.':143/notls}INBOX',$emailAddress,$emailPassword) or die('Cannot connect to domain:' . imap_last_error());
$emails = imap_search($inbox,'UNSEEN');
if($emails) {
    rsort($emails);
    foreach($emails as $email_number) {
        $headerInfo = imap_headerinfo($inbox,$email_number);
        $structure = imap_fetchstructure($inbox, $email_number);
        $overview = imap_fetch_overview($inbox,$email_number,0);
        $message = imap_qprint(imap_fetchbody($inbox,$email_number,1.2));
        $output .= 'Subject: '.$overview[0]->subject.'<br />';
        $output .= 'Body: '.$message.'<br />';
        $output .= 'From: '.$overview[0]->from.'<br />';
        $output .= 'Date: '.$overview[0]->date.'<br />';
    }
    echo $output;
}
imap_close($inbox);

我的输出是:

src="cid:ii_15a0880348d13b6e"

如何解决这个问题?

0 个答案:

没有答案