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.
$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);
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);