From 1da690a2d4d5b42961e7f6261f55e54e8f7d8fe5 Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 24 Oct 2002 14:50:45 +0000 Subject: [PATCH] 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 --- src/compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1