Forums | Mahara Community

Support /
How to disable emails


Emilie Lenel's profile picture
Posts: 112

23 July 2015, 0:57

Hello

We'd like to disable all email notifications on our test platform.

Is it enought to turn off all notification from the mahara/admin/site/options.php menu, or is there an option somewhere like in Moodle to divert all outgoing emails  :

// Divert all outgoing emails to this address to test and debug emailing features
// $CFG->divertallemailsto = '[email protected]'; // NOT FOR PRODUCTION SERVERS!

Thanks

BR

Emilie

Kristina Hoeppner's profile picture
Posts: 4863

23 July 2015, 9:26

Hello Emilie,

There are two settings that you can put into your config.php file to prevent the sending of emails (first) or to send all emails to a specific email address (second). See also lib/config-defaults.php for an overview of all possible config values:

$cfg->sendemail = true;
$cfg->sendallemailto = 'enteryouremailaddress';

Cheers

Kristina

 

Emilie Lenel's profile picture
Posts: 112

23 July 2015, 19:25

Hi Kristina

Ok thanks for the info

Cheers

Emilie

3 results