From: stekkel Date: Thu, 24 Oct 2002 14:50:45 +0000 (+0000) Subject: add quotes around the personal name. This solves incorrect from_mail X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1da690a2d4d5b42961e7f6261f55e54e8f7d8fe5;p=squirrelmail.git add quotes around the personal name. This solves incorrect from_mail addresses. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4008 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index bc63fba7..69fab1d2 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1276,7 +1276,7 @@ function deliverMessage($composeMessage, $draft=false) { if ($full_name) { $from = $rfc822_header->from[0]; 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); } if ($reply_to) {