Forums | Mahara Community

Support /
Problem with Mail Process


Ralf Hilgenstock's profile picture
Posts: 162

23 March 2022, 9:36

Hello

 

we've a problem with mail notification from a mahara platform (v21.04).  The platform don't sent any mails.  Neither for password forgotten nor forums. Cron is running normally.

smtp entries are set.


In config.pghp *$cfg->developermode = true;* and *$cfg->productionmode=false;* are set experimental but we didn't get any additional advices.

 

Any idea what we can check?

 

Ralf

Robert Lyon's profile picture
Posts: 773

23 March 2022, 11:18

Hi Ralf,

One thing you can check is this:

In htdocs/lib/user.php there is a function called email_user() there is a part where the mail is sent around line 900 where it has

    try {
        $sent = $mail->Send();
    }
    catch (phpmailerException $e) {
        $sent = false;
    }

Try changing it to

 

    try {
        $sent = $mail->Send();
        log_debug('send email fine');
    }
    catch (phpmailerException $e) {
        $sent = false;
        log_debug($e);
    }

 

So that it can output some info about whether the email was sent or what error occurred - you should be able to test it by sending an email to someone via the inbox (envelope) link at top of the Mahara page

Cheers

Robert

Ralf Hilgenstock's profile picture
Posts: 162

29 March 2022, 5:50

Hi Robert

 

that was very helpfull. We could identify a problem with firewall settings and solve the problem.

 

 

Cheers

 

Ralf

3 results