Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hey!

Pretty much referring to this topic:
viewtopic.php?f=4&t=7597

Same problem affects my forgot / reset password

So suggested solution of modifying tags.php / send_mail function, and with the new update is still not viable fixing all the problems.

Problems occurs with generally all utf-8 translations.

I would believe that it would just require the same solution as for tags.php but for forgotpassword.php, but my PHP knowledge is limited to that extent.

Please link or post the appropriate fix.

Thanks ahead!
Can I get any solutions / tips for this?
Hi,

Apologies for this really looong delay in my reply :)

The reason for the problem you mentioned is the same charset issue that we discussed before.
While cms:send_mail tag now sends the correct charset, the routines for forgot/reset password do not use cms:send_mail. Rather, they send the email directly.

For now the fix would be this -
Please edit 'couch/forgotpassword.php' and find the following line of code
Code: Select all
$rs = $FUNCS->send_mail( $from, $to, $subject, $msg );

You'll find the above-mentioned line at two places.
At both the places, please modify it to make it -
Code: Select all
$headers = array();
$headers['MIME-Version']='1.0';
$headers['Content-Type']='text/plain; charset='.K_CHARSET;
$rs = $FUNCS->send_mail( $from, $to, $subject, $msg, $headers );

Please let us know if this fixes the problem.

Thanks (and sorry once again for the delay).
Wow, didn't see you updated this. Well, now I got a solution!

Thanks, KK, you're still the best!
4 posts Page 1 of 1