Index: core/kernel/utility/email_send.php =================================================================== --- core/kernel/utility/email_send.php (revision 15085) +++ core/kernel/utility/email_send.php (working copy) @@ -1857,13 +1857,13 @@ */ function _replaceRecipientEmail($email) { - if (defined('DBG_EMAIL') && DBG_EMAIL) { - if (substr(DBG_EMAIL, 0, 1) == '@') { + if ( defined('OVERRIDE_EMAIL_RECIPIENTS') && OVERRIDE_EMAIL_RECIPIENTS ) { + if ( substr(OVERRIDE_EMAIL_RECIPIENTS, 0, 1) == '@' ) { // domain - $email = str_replace('@', '_at_', $email) . DBG_EMAIL; + $email = str_replace('@', '_at_', $email) . OVERRIDE_EMAIL_RECIPIENTS; } else { - $email = DBG_EMAIL; + $email = OVERRIDE_EMAIL_RECIPIENTS; } } Index: tools/debug_sample.php =================================================================== --- tools/debug_sample.php (revision 15052) +++ tools/debug_sample.php (working copy) @@ -22,6 +22,7 @@ // define('DBG_CAPTURE_STATISTICS', 1); // Capture performance statistics // define('DBG_MAX_SQL_TIME', 2); // Maximal allowed sql execution time in seconds, all sqls above this become slow sqls // define('DBG_CURL', 1); // Log all curl requests to CurlLog database table +// define('OVERRIDE_EMAIL_RECIPIENTS', ''); // Overwrites email recipients with some-email@domain-name.com or @domain-name.com $dbg_options = Array ( // !!! DEBUG MODE will be off if IP does not match !!!