appdb/include mail.php

WineHQ wineowner at wine.codeweavers.com
Sun Jul 1 20:09:16 CDT 2007


ChangeSet ID:	31237
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/07/01 20:09:16

Modified files:
	include        : mail.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Make mail_appdb() send mail with Bcc and only appdb-noreply at winehq.org as the recipient.

Patch: http://cvs.winehq.org/patch.py?id=31237

Old revision  New revision  Changes     Path
 1.9           1.10          +5 -1       appdb/include/mail.php

Index: appdb/include/mail.php
diff -u -p appdb/include/mail.php:1.9 appdb/include/mail.php:1.10
--- appdb/include/mail.php:1.9	2 Jul 2007  1: 9:16 -0000
+++ appdb/include/mail.php	2 Jul 2007  1: 9:16 -0000
@@ -8,9 +8,12 @@ function mail_appdb($sEmailList,$sSubjec
     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,$sSubjec
         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 



More information about the wine-cvs mailing list