Password reset link not compatible with content_type of text/html (2 posts)

  1. sunriseweb
    Posted 5 years ago #

    A plugin sets email content_type set to HTML as follows:

    function set_contenttype($content_type){
      return 'text/html';

    Now password reset email does not display the link to click back to change the password because in wp-login.php the retrieve_password() function puts angle brackets around the link.

    $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";

    Is the plugin setting email content_type improperly or should the email message formatting in retrieve_password() be changed?

  2. sunriseweb
    Posted 5 years ago #

    Ok - I'm thinking that the plugin should be setting the email content_type inside any notification function - not globally - and password reset emails will always go out as text - but it would be nice if WP system-generated emails supported content_type of text/html in case a plugin does this incorrectly.

Topic Closed

This topic has been closed to new replies.

About this Topic