ForgotPassword snippet no longer sending email to user

When first implementing the Login extra following these instructions all functionality was working properly. No changes have been made to any of the login-related code on our end, however, the ForgotPassword snippet is no longer sending emails to the user to reset their password.

Is there any way that can be recommended for how to best troubleshoot this?

Does your site still successfully send other e-mails?

yes other emails from the site are successfully sent

If the Login extra can’t send an e-mail, it should log a message to the MODX error log.

Is there such an error message in the error log?

This is what displayed in the error log after attempting to use the Forgot Password functionality on the front end:

[2024-03-29 17:08:46] (ERROR @ /mysite/public_html/core/cache/includes/elements/modx/revolution/modplugin/23.include.cache.php : 5) PHP warning: Undefined property: MODX\Revolution\modX::$hpCount
[2024-03-29 17:08:52] (ERROR @ /mysite/public_html/core/cache/includes/elements/modx/revolution/modplugin/23.include.cache.php : 5) PHP warning: Undefined property: MODX\Revolution\modX::$hpCount
[2024-03-29 17:08:57] (ERROR @ /mysite/public_html/core/cache/includes/elements/modx/revolution/modplugin/23.include.cache.php : 5) PHP warning: Undefined property: MODX\Revolution\modX::$hpCount
[2024-03-29 17:09:04] (ERROR @ /mysite/public_html/core/components/login/model/login/login.class.php : 180) [Login] register.email_not_sent SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[2024-03-29 17:09:04] (ERROR @ /mysite/public_html/core/cache/includes/elements/modx/revolution/modplugin/23.include.cache.php : 5) PHP warning: Undefined property: MODX\Revolution\modX::$hpCount

So it seems that there is a problem with your SMTP settings.
(These are general MODX settings. Not specific to the Login extra.)


To debug email issues, it’s usually recommended to install the extra QuickEmail.
Also maybe take a look a this page in the documentation (or maybe this page for MODX cloud).

That’s strange because the SMTP settings have not changed since when the emails were sending to now. Is there a reason why this might have happened?

Maybe your email service provider changed something.

After installing QuickEmail and creating and viewing the QuickEmailCheck resource, the word “Unauthorized” appears on the page where I have added the snippet.