瀏覽代碼

ahh, from is an array

stekkel 23 年之前
父節點
當前提交
5c29b3f550
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/compose.php

+ 1 - 1
src/compose.php

@@ -1165,7 +1165,7 @@ function sendMessage($composeMessage, $draft=false) {
     }
     }
     $rfc822_header->from = $rfc822_header->parseAddress($from_mail,true);
     $rfc822_header->from = $rfc822_header->parseAddress($from_mail,true);
     if ($full_name) {
     if ($full_name) {
-        $from = $rfc822_header->from;
+        $from = $rfc822_header->from[0];
 	if (!$from->host) $from->host = $domain;
 	if (!$from->host) $from->host = $domain;
 	$from_addr = $full_name .' <'.$from->mailbox.'@'.$from->host.'>';
 	$from_addr = $full_name .' <'.$from->mailbox.'@'.$from->host.'>';
         $rfc822_header->from = $rfc822_header->parseAddress($from_addr,true);
         $rfc822_header->from = $rfc822_header->parseAddress($from_addr,true);