add quotes around the personal name. This solves incorrect from_mail
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 24 Oct 2002 14:50:45 +0000 (14:50 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 24 Oct 2002 14:50:45 +0000 (14:50 +0000)
addresses.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4008 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index bc63fba71f4ecd797df02e369602a10fbcd22512..69fab1d28c512a0c38bc24168e6d9b954350cc80 100644 (file)
@@ -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) {