ahh, from is an array
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 13:11:33 +0000 (13:11 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 13:11:33 +0000 (13:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3591 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index b843fcd..dd79a55 100644 (file)
@@ -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);