WP link for reset password is not received

I used my existing password but that did not work. So I asked for a new password. Your Email, with your link, has not been sent

Topic authentication Wordpress

Category Web


It's possible that mail() PHP function is disabled on your server and sending emails silently fails. So either check your hosting setup or try using SMTP with this plugin for example : https://wordpress.org/plugins/wp-mail-smtp/


You need to debug the main issue first

wp-config.php

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

functions.php

// define the wp_mail_failed callback 
function action_wp_mail_failed($wp_error) 
{
    return error_log(print_r($wp_error, true));
}

// add the action 
add_action('wp_mail_failed', 'action_wp_mail_failed', 10, 1);

For more detail read this article LINK

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.