vanderaj / gaiabb

Full featured web forum software written in PHP
https://github.com/vanderaj/gaiabb
2 stars 1 forks source link

Enhancement: AdminCP::Email admin needs to be configurable #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
User Story

Currently, the board will ALWAYS e-mail the administrator when a database 
panic. This should 
be configurable, as not every host has correctly configured SMTP. 

Constraints

TBA

Tests

TBA

Action

Change this code in mysql5php5.class.php, lines 143 - 148. 

        // TODO: make this configurable as not every host has mail configured
        // TODO: make this use the SMTP classes, if possible
        if ( isset($CONFIG['adminemail']) && isset($CONFIG['bbname']) ) 
        {
            mail($CONFIG['adminemail'], 'GaiaBB :: Database panic from '.$CONFIG['bbname'], 
$msg->getMessage() . "\r\n" . $this->conn->error );         
        }

Original issue reported on code.google.com by vande...@gmail.com on 20 Feb 2010 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by vande...@gmail.com on 21 Feb 2010 at 2:14