Make mail_appdb() send mail with Bcc and only appdb-noreply@winehq.org as the recipient.
This commit is contained in:
committed by
WineHQ
parent
403e052a8c
commit
53c0a0b393
@@ -8,9 +8,12 @@ function mail_appdb($sEmailList,$sSubject,$sMsg)
|
||||
if(defined("DISABLE_EMAIL"))
|
||||
return;
|
||||
|
||||
$sEmailList = str_replace(" ",",",$sEmailList);
|
||||
|
||||
$sHeaders = "MIME-Version: 1.0\r\n";
|
||||
$sHeaders .= "From: AppDB <".APPDB_SENDER_EMAIL.">\r\n";
|
||||
$sHeaders .= "Reply-to: AppDB <".APPDB_SENDER_EMAIL.">\r\n";
|
||||
$sHeaders .= "Bcc: $sEmailList\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 +35,8 @@ function mail_appdb($sEmailList,$sSubject,$sMsg)
|
||||
return;
|
||||
}
|
||||
|
||||
$bResult = mail(str_replace(" ",",",$sEmailList), "[AppDB] ".$sSubject, $sMsg, $sHeaders, "-f".APPDB_SENDER_EMAIL);
|
||||
$bResult = mail(APPDB_SENDER_EMAIL, "[AppDB] ".$sSubject, $sMsg, $sHeaders,
|
||||
"-f".APPDB_SENDER_EMAIL);
|
||||
if($bResult)
|
||||
addmsg("Message sent to: ".$sEmailList, "green");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user