Explorar o código

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

stekkel %!s(int64=23) %!d(string=hai) anos
pai
achega
a23769d21d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {