Skip to content

Forgot password fails when no "From email" is set

When the from email is blank in email configuration the forgot password function fails with a no outgoing server configured error.

Entering a from email resolves the issue. Looking at the code in forgotpassword.php it seems like it should handle that scenario but doesn't.

I've tried hardcoding the following:

$from = $adb->query_result($result,0,'[email protected]');

OR

if($from == '') {$from =$adb->query_result($result,0,'[email protected]'); }

Neither change resolves the problem.