From 9783f396b2ff29e8bc6035fe1dc83fe76be3a32b Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 6 Sep 2002 13:11:33 +0000 Subject: [PATCH] ahh, from is an array git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3591 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index b843fcda..dd79a555 100644 --- a/src/compose.php +++ b/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); -- 2.25.1