我一直试图通过 php imap
从收到的电子邮件中获取协作者imap_fetch_overview($stream, $email_id, 0);
$from = $this->decode_imap_text($overview[0]->from);
$subject = $this->decode_imap_text($overview[0]->subject);
$to = $this->decode_imap_text($overview[0]->to);
function decode_imap_text($str) {
$result = '';
$decode_header = imap_mime_header_decode($str);
foreach ($decode_header AS $obj) {
$result .= htmlspecialchars(rtrim($obj->text, "\t"));
}
return $result;
}
但无法找到如何获取CCC或协作者