Support » Plugin: Theme My Login » Reset Password email headers missing (7.0.14)

  • Hi,

    When an user forgot his password and request a new one, TML send an email without headers in includes/compat.php:

    $retrieve_password_email = array(
    		'to'      => $user->user_email,
    		'subject' => $title,
    		'message' => $message,
    		'headers' => ''
    	);

    Therefor the rest’s link does not work and the message contains html tags in text form.
    To correct that we must modify this code:

    $retrieve_password_email = array(
    		'to'      => $user->user_email,
    		'subject' => $title,
    		'message' => $message,
    		'headers' => array('Content-Type: text/html; charset=UTF-8')
    	);

    to get a right message display within the email client.

    • This topic was modified 3 months, 2 weeks ago by pierre007.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    What happens if you set that content-type to text/plain?

    You receive this email:

    Quelqu’un a demandé la réinitialisation du mot de passe pour le compte suivant :<br />
    <br />
    Titre du site : XXXXX<br />
    <br />
    Identifiant : Dummy<br />
    <br />
    S’il s’agit d’une erreur, ignorez ce message et la demande ne sera pas prise en compte.<br />
    <br />
    Pour renouveler votre mot de passe, cliquez sur le lien suivant :<br />
    <br />
    <<a href="https://www.XXXXX.local/resetpass/?key=0paGaqEXFxdUeAC3bxgJ&login=Dummy" rel="nofollow">https://www.XXXXX.local/resetpass/?key=0paGaqEXFxdUeAC3bxgJ&login=Dummy</a>><br />
    
    • This reply was modified 3 months, 2 weeks ago by pierre007.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.