[wp-hackers] Forum Post
Carthik Sharma
carthik at gmail.com
Wed Oct 13 17:11:28 UTC 2004
The problem seems to be with mb_send_mail's choice of language/encoding.
I got the password reset email in a readable format by
a) using only mail() by removing the mb_send_mail
AND
b) by setting the language mb_language('English'); before the call to
mb_send_mail().
example for b):
function wp_mail($to, $subject, $message, $headers = '', $more = '') {
if ( function_exists('mb_send_mail') ){
mb_language('English');
return mb_send_mail($to, $subject, $message, $headers, $more);
}
else
return mail($to, $subject, $message, $headers, $more);
}
the mb_language is "Neutral" on my server, without my setting the
language, and this seems to be the reason why the password-reset email
sent is indecipherable.
It looks very much like mb_send_mail is useful for Japanese folks on
Japanese servers, which have the mb_language set right (to
Japanese/Kanji) but do we really need it, seeing as it does good only
for a limited section of the population.
I would go so far as to suggest using mb_send_mail only when the
mb_language setting is not "Neutral" , maybe!
As for the forum post, I don't know how best to answer it right now,
maybe we can wait till this problem is fixed in the source.
Regards,
Carthik.
On Wed, 13 Oct 2004 16:43:02 +0100, Podz <podz at tamba2.org.uk> wrote:
> http://wordpress.org/support/3/14642
>
> "I tried the 1.2.1 upgrade, both the full install and by uploading only
> the changed files. It worked fine except for the Email-the-Password
> feature; 1.2.1 emailed the password in Base64 code which, of course,
> doesn't work for login purposes:"
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>
--
When nothing is done, nothing is left undone -- 老子 Lǎozi
University of Central Florida
<a href="http://www.spreadfirefox.com/?q=affiliates&id=2904&t=1">Get
Firefox!</a>
Homepage: http://carthik.net
More information about the hackers
mailing list