Not having the \r\n caused lots of problems for lots of people.
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Jan 2002 21:51:04 +0000 (21:51 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Jan 2002 21:51:04 +0000 (21:51 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2083 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index ad566b3..2052513 100644 (file)
@@ -278,9 +278,9 @@ function write822Header ($fp, $t, $c, $b, $subject, $more_headers) {
             $received_from .= " (proxying for $HTTP_X_FORWARDED_FOR)";
         }            
         
-        $header  = "Received: from $received_from\n";
-        $header .= "        (SquirrelMail authenticated user $username)\n";
-        $header .= "        by $SERVER_NAME with HTTP;\n";
+        $header  = "Received: from $received_from\r\n";
+        $header .= "        (SquirrelMail authenticated user $username)\r\n";
+        $header .= "        by $SERVER_NAME with HTTP;\r\n";
         $header .= "        $date\r\n";
         
         /* Insert the rest of the header fields */