I have two sites. I installed wp-cerber to the two sites. On the sites, I am masking the login url. I have an issue on one of the sites. On the site, I am using GravitySMTP (Custom SMTP) to send emails. Emails get sent from different parts of the app, but on the login url, the email does not get sent. I get a server error. However, if I deactivate wp_cerber or I do not use a custom login url, I get the emails with no errors.
This is the error I get below
[31-Oct-2024 16:44:06 UTC] PHP Fatal error: Uncaught Error: Call to a member function mail() on null in /var/www/html/wp-content/plugins/gravitysmtp/includes/functions_include.php:19
Stack trace:
#0 /var/www/html/wp-includes/user.php(3315): wp_mail('kolawole@*******...', '[Sample Text...', 'Someone has req...', '')
#1 /var/www/html/wp-login.php(831): retrieve_password()
#2 /var/www/html/wp-content/plugins/wp-cerber/cerber-load.php(1017): require('/var/www/html/w...')
#3 /var/www/html/wp-content/plugins/wp-cerber/cerber-load.php(2582): cerber_wp_login_page()
#4 /var/www/html/wp-includes/class-wp-hook.php(324): {closure}('')
#5 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /var/www/html/wp-settings.php(700): do_action('init')
#8 /var/www/html/wp-config.php(113): require_once('/var/www/html/w...')
#9 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')
#10 /var/www/html/wp-blog-header.php(13): require_once('/var/www/html/w...') in /var/www/html/wp-content/plugins/gravitysmtp/includes/functions_include.php on line 19
Please what could be the matter?