作者 邓超

x

@@ -295,13 +295,10 @@ class Mail { @@ -295,13 +295,10 @@ class Mail {
295 try { 295 try {
296 296
297 // 没有收件人 297 // 没有收件人
298 - if(!empty($header['To'])){  
299 - $header['To'] = MailFun::toOrFrom($header['To']);  
300 - }else{  
301 - $header['To'] = [];  
302 - } 298 + $header['To'] = MailFun::toOrFrom($header['To']??($header['TO']??''));
  299 +
303 300
304 - $header['From'] = MailFun::toOrFrom($header['From']??''); 301 + $header['From'] = MailFun::toOrFrom($header['From']??($header['FROM']??''));
305 // 抄送 ,密送 302 // 抄送 ,密送
306 $cc = []; 303 $cc = [];
307 $bcc = []; 304 $bcc = [];