If you are using Python/Debian/RPM packages of pgAdmin 4, then you have to set up the SMTP configuration in the config_local.py file by overriding the config.py file.
I’m trying to reset my password with this email address: thomaswainblum@hotmail.fr but got this error message: SMTP Socket error: Connection refused. Your password has not been changed.