Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Mike Bobbitt on March 18, 2008, 03:04:24 PM

Title: 2.0b3p: Can't send password reset e-mails?
Post by: Mike Bobbitt on March 18, 2008, 03:04:24 PM
Just upgraded a small board (http://orb.infoexpress.com) and things are looking good, but password reset e-mails aren't going out.

Other mail is delivered just fine, there is not log of a password reminder e-mail being generated on the server. I've tried with the mail queue on or off, no change. (I can see topic notifications etc. being queued up OK.)

Am I the only one seeing this?


Thanks
Mike
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: niko on March 18, 2008, 03:11:57 PM
I think this is bug

Following seems to fix this:

Reminder.php

Replace

        if (!empty($row['openid_uri']))
            sendmail($row['email_address'], $emaildata['subject'], $emaildata['body']);
        else
        {
            // Set the password in the database.
            updateMemberData($row['id_member'], array('validation_code' => substr(md5($password), 0, 10)));
        }


With:


        sendmail($row['email_address'], $emaildata['subject'], $emaildata['body']);
        if (empty($row['openid_uri']))
        {
            // Set the password in the database.
            updateMemberData($row['id_member'], array('validation_code' => substr(md5($password), 0, 10)));
        }


Edit, For Team reference this bug is 1780
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: Mike Bobbitt on March 19, 2008, 09:02:09 AM
Thanks Niko! You guys are fast!

:)
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: Daggers on March 30, 2008, 02:36:05 PM
I have just tried the above solution, when clicking on the forgot password link I get 'Page cannot be displayed' :(
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: Mike Bobbitt on March 30, 2008, 02:58:56 PM
Double check the changes, you might have made a typo... Niko's note fixed it for me.
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: Daggers on March 30, 2008, 06:06:06 PM
I did an exact copy & paste :(

The page works without the added code but the email doesnt get sent
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: TheWrath! on April 01, 2008, 09:54:43 AM
any update on this?
Title: Re: 2.0b3p: Can't send password reset e-mails?
Post by: vortex7 on April 06, 2008, 04:32:53 PM
I had this problem too itss help but there was a little mistake

sendmail($row['email_address'], $emaildata['subject'], $emaildata['body']);
                        if (!empty($row['openid_uri']))


Just forget "!"

Thanks Niko