Unit tests should disable sending email before they execute, we don't want any accidental emails sent when developers are

running the unit tests to verify functionality. Add commented out example code that will enable developers to disable email via
a define in include/config.php
This commit is contained in:
Chris Morgan
2006-12-02 19:44:31 +00:00
committed by WineHQ
parent fda353c433
commit c19a471bd5
3 changed files with 12 additions and 0 deletions

View File

@@ -3,6 +3,11 @@ require_once(BASE."include/config.php");
function mail_appdb($sEmailList,$sSubject,$sMsg)
{
// NOTE: For AppDB developers: If email is disabled return from this function
// immediately. See include/config.php.sample for information
if(defined("DISABLE_EMAIL"))
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";