...
|
...
|
@@ -211,13 +211,23 @@ class Mail { |
|
|
}
|
|
|
|
|
|
$header['From'] = MailFun::toOrFrom($header['From']);
|
|
|
// 抄送 ,密送
|
|
|
$cc = [];
|
|
|
$bcc = [];
|
|
|
if($header['Cc']??''){
|
|
|
$cc = MailFun::toOrFrom($header['Cc']);
|
|
|
}
|
|
|
if($header['Bcc']??''){
|
|
|
$bcc = MailFun::toOrFrom($header['Bcc']);
|
|
|
}
|
|
|
|
|
|
|
|
|
$data = [
|
|
|
'msgno' => $key,
|
|
|
'uid' => $result['UID'],
|
|
|
'subject' => $header['Subject'],
|
|
|
'cc' => $header['Cc']??'',
|
|
|
'bcc' => $header['Bcc']??'',
|
|
|
'cc' => $cc,
|
|
|
'bcc' => $bcc,
|
|
|
'from' => $header['From'][0]['email']??'',
|
|
|
'from_name' => $header['From'][0]['name']??'',
|
|
|
'to' => $header['To']?implode(',',array_column($header['To'],'email')):'',
|
...
|
...
|
|