Browse Source

add quotes around the personal name. This solves incorrect from_mail
addresses.

stekkel 23 years ago
parent
commit
a23769d21d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/compose.php

+ 1 - 1
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) {