• Hi all,

    Just a quick question as i cant find a template for it.

    Is there a default template for the email that is sent when a user requests a password reset? i can find the templates for registering, activate and such. just nothing for that.

    I have a user who is struggling to change their password via the email and i want to check if the links point to the right place.

    Any help is much appreciated. Thanks

    Phil

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, Phil (@bogski). It looks like the message content of this email is built within the retrieve_password function in the wp-login.php file:

    $message = __('Someone has requested a password reset for the following account:') . "\r\n\r\n";
    $message .= network_home_url( '/' ) . "\r\n\r\n";
    $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n";
    $message .= __('To reset your password, visit the following address:') . "\r\n\r\n";
    $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
    Thread Starter bogski

    (@bogski)

    Hi girlieworks,

    Terribly sorry for the late reply I didn’t realise someone had replied.

    Thanks for that I will start there.

    Regards,

    Phil

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reset password email template’ is closed to new replies.