How to "CC" admin in all outgoing email messages

Re: How to "CC" admin in all outgoing email messages

by Andrei Băutu -
Number of replies: 0
Picture of Plugin developers

Thank you. It works. In Moodle 2+ you need lowercase A 

    // BEGIN PATCH send BCC of all outgoing mails to the specified address
    if (!empty($CFG->bccmails)){
        $mail->addBCC($CFG->bccmails);
    }
    // END PATCH