Moodle - Disable Mailing for non prod

Edit config.php on Moodle’s root directory:

$CFG->noemailever = true;

Sources:

  • https://peejseej.nl/2012/10/disable-emails-in-moodle/