Use separate setting for the email sender address. This allows the appdb emails to be sent

from a different address than the default one. Use the sender address to point email
responses to the new noreply address.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-05-12 16:30:32 +00:00
committed by WineHQ
parent 25edd78c73
commit 6b7b9add74
2 changed files with 4 additions and 3 deletions

View File

@@ -9,8 +9,8 @@ function mail_appdb($sEmailList,$sSubject,$sMsg)
return;
$sHeaders = "MIME-Version: 1.0\r\n";
$sHeaders .= "From: AppDB <".APPDB_OWNER_EMAIL.">\r\n";
$sHeaders .= "Reply-to: AppDB <".APPDB_OWNER_EMAIL.">\r\n";
$sHeaders .= "From: AppDB <".APPDB_SENDER_EMAIL.">\r\n";
$sHeaders .= "Reply-to: AppDB <".APPDB_SENDER_EMAIL.">\r\n";
$sHeaders .= "X-Priority: 3\r\n";
$sHeaders .= "X-Mailer: ".APPDB_OWNER." mailer\r\n";
$sMsg = trim(ereg_replace("\r\n","\n",$sMsg));
@@ -32,7 +32,7 @@ function mail_appdb($sEmailList,$sSubject,$sMsg)
return;
}
$bResult = mail(str_replace(" ",",",$sEmailList), "[AppDB] ".$sSubject, $sMsg, $sHeaders, "-f".APPDB_OWNER_EMAIL);
$bResult = mail(str_replace(" ",",",$sEmailList), "[AppDB] ".$sSubject, $sMsg, $sHeaders, "-f".APPDB_SENDER_EMAIL);
if($bResult)
addmsg("Message sent to: ".$sEmailList, "green");
else