• I have Mandrill installed, but am not using any templates. Therefore, what’s being sent should be pure text (the standard WP emails). But when I request a password reset I get the following:

    “Someone requested that the password be reset for the following account: https://website.com/ Username: ophelia If this was a mistake, just ignore this email and nothing will happen. To reset your password, visit the following address:”

    Note the lack of line breaks, AND the lack of a URL to follow.

    Help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You might want to try a different email plugin

    Someone was having a similar problem but a responder claimed that it was a Gmail problem
    Password Reset Missing Link URL WIthin Email BuddyPress

    mbogh

    (@bjornhughes)

    Hi I was recently informed of this same issue on our site having just updated wordpres to v4.7.1

    I know it was working on my site previous to that update so I don’t know if they changed something to cause this or not. However I found this article that explains how to fix it by modifying the wp-login.php (a core wp file): https://sagarnangare.com/how-to-fix-password-reset-link-not-displaying-in-wordpress-emails/

    Having made this change and completing some tests – the link is now working again however I have also received this warning from wordfence (which is a great plugin fyi):

    Alert generated at Tuesday 17th of January 2017 at 02:49:59 PM
    Critical Problems:
    * WordPress core file modified: wp-login.php

    Obviously this file will be re-written on every future core update so I am hoping this is something wordpress can address so I dont have to modify core files in the future.

    You can add this code to your functions.php file.

    add_filter( 'retrieve_password_message', 'my_retrieve_password_message', 10, 4 );
    
    function my_retrieve_password_message( $message, $key, $user_login, $user_data ) {
        $link = network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login');
        $message = str_replace('<' . $link . '>', $link, $message);
        
        return $message;
    }
    mbogh

    (@bjornhughes)

    I did some exploring and found this really simple plugin which allows you to edit the message too: https://www.ads-software.com/plugins/custom-forgot-mail/

    • This reply was modified 8 years, 1 month ago by mbogh.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Password Reset Link isn't there…’ is closed to new replies.