Browse Source

ahh, from is an array

stekkel 23 years ago
parent
commit
5c29b3f550
1 changed files with 1 additions and 1 deletions
  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);
     if ($full_name) {
-        $from = $rfc822_header->from;
+        $from = $rfc822_header->from[0];
 	if (!$from->host) $from->host = $domain;
 	$from_addr = $full_name .' <'.$from->mailbox.'@'.$from->host.'>';
         $rfc822_header->from = $rfc822_header->parseAddress($from_addr,true);