Browse Source

updated install

Luke Ehresman 25 years ago
parent
commit
70465b33ec
2 changed files with 5 additions and 5 deletions
  1. 2 2
      INSTALL
  2. 3 3
      functions/smtp.php

+ 2 - 2
INSTALL

@@ -11,8 +11,8 @@ overview of how to install SquirrelMail.
 4.  Change the permissons for the "data/" directory so it's writable to
     the web server.  Under Red Hat Linux 6.0, this is done by:
 
-    chown nobody data
-    chgrp nobody data
+    chown -R nobody data
+    chgrp -R nobody data
 
     "nobody" is the user and group for the apache server for this
     example.

+ 3 - 3
functions/smtp.php

@@ -27,9 +27,9 @@
       $reply_to = getPref($username, "reply_to");
       $from = getPref($username, "full_name");
       if ($from == "")
-         $from = "<$username@$domain>";
+         $from = "<$from_addr>";
       else
-         $from = $from . " <$username@$domain>";
+         $from = $from . " <$from_addr>";
 
 
       $smtpConnection = fsockopen($smtpServerAddress, $smtpPort, $errorNumber, $errorString);
@@ -50,7 +50,7 @@
       errorCheck($tmp);
 
       /** Ok, who is sending the message? */
-      fputs($smtpConnection, "MAIL FROM:$from_addr\n");
+      fputs($smtpConnection, "MAIL FROM:<$from_addr>\n");
       $tmp = nl2br(htmlspecialchars(fgets($smtpConnection, 1024)));
       errorCheck($tmp);