In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Horizontal ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0001199 [In-Portal CMS] Refactoring task always 2012-02-01 12:34 2012-07-25 05:31
Reporter Dmitry View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0001199: Rename DBG_EMAIL option and Add it to debug_sample.php
Description We have nice feature, that allows to transfer all e-mails that are sent to given e-mail address.

This is useful in cases, when developer performs some action on a website, that can cause mass mailing and he doesn't want that mails to reach live users.

And since all e-mails are sent to his mailbox he then is able to detect what was happening.

Option is called DBG_EMAIL and can be set to:

e-mail address (e.g. al...@intechnic.com)
e-mail domain (e.g. @intechnic.com)

In later case actual recipient e-mail would be created from original e-mail recipient this way:

1. have user@domain.tld
2. replace @ with _at_
3. append domain from DBG_EMAIL
4. result user_at_d...@intechnic.com

If DBG_EMAIL is defined in $dbg_options array in debug.php file, then it will only work when debug mode is enabled. If there is a need, then it can be defined before $dbg_options array resulting recipient replacing until this option is turn off.


In this task we NEED:

1. Rename DBG_EMAIL to OVERRIDE_EMAIL_RECIPIENTS
2. Make sure it works withi $dbg_options and outside
3. Add it as sample OVERRIDE_EMAIL_RECIPIENTS to tools/debug_sample.php

define('OVERRIDE_EMAIL_RECIPIENTS', ''); // Overwrites email recipients with some-email@domain-name.com or @domain-name.com




Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker