Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Sudhakar Arjunan on April 01, 2015, 04:31:50 PM

Title: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Sudhakar Arjunan on April 01, 2015, 04:31:50 PM
Dear Team,

Recently got a complain form my forum users that they are unable to reset there password in SMF 2.1 Beta 1 forum.

In forget password page, after typing email id or username , it will take us to this page
http://forum.website.com/index.php?action=reminder;sa=picktype

Authentication Reminder
A mail has been sent to your email address. Click the link in that mail to set a new password.

But no email in our inbox for many such users when we use forget password.

Zero mods installed in forum.

We are using gmail on mail settings , and when we checked the gmail account and it has 35 to 50 emails sent via our configured gmail id, like registration welcome email, birthday email etc.

Set Mail type to:                          SMTP
Set SMTP server to:                     ssl://smtp.googlemail.com
Set SMTP port to:                        465
Set SMTP username to:                 [email protected]
Set SMTP password to:                 Your email password
Confirm the password
Save the settings.

But only forget password emails are not received to end users and it is not working.

Kindly assist team.
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Illori on April 01, 2015, 04:37:07 PM
has been fixed on github https://github.com/SimpleMachines/SMF2.1/issues/2691
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Sudhakar Arjunan on April 01, 2015, 04:48:09 PM
Quote from: Illori on April 01, 2015, 04:37:07 PM
has been fixed on github https://github.com/SimpleMachines/SMF2.1/issues/2691

Hi Illori,

Thank you and you mean to say we need to do this,

====

seems we need to use sendmail to get the mail to send...

around line 141 in reminder.php

$emaildata = loadEmailTemplate('forgot_password', $replacements, empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile']);
// Then send the actual email.
sendmail($row['email_address'], $emaildata['subject'], $emaildata['body'], null, null, false, 1);


Means on reminder.php, line 141. we need to add these lines or modify some other lines etc.
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Illori on April 01, 2015, 04:54:29 PM
it would be better for you to download the updated 2.1 from github and use that. but really you should not be using 2.1 on a live forum anyway.
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Sudhakar Arjunan on April 01, 2015, 04:58:46 PM
Quote from: Illori on April 01, 2015, 04:54:29 PM
it would be better for you to download the updated 2.1 from github and use that. but really you should not be using 2.1 on a live forum anyway.

I know, but since it was took much load on my server. So without second through i upgraded and 15 mins traffic went from 300 to 45 users now. But server is healthy.

Once db is upgraded, the old backup was not working and i could not match db between a week for old and new site. So left with 2.1 itself.

I can edit the same, so can i add that line in 141 or need to do some modifications like editing , removing etc on reminder.php or just add these lines.
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Sudhakar Arjunan on April 01, 2015, 05:32:45 PM
Thank you anyway for support.

I checked on reminder.php file on line 141 , found this line

$emaildata = loadEmailTemplate('forgot_password', $replacements, empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile']);

and overwritten the given line as in github

$emaildata = loadEmailTemplate('forgot_password', $replacements, empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile']);
// Then send the actual email.
sendmail($row['email_address'], $emaildata['subject'], $emaildata['body'], null, null, false, 1);


Now checked the forget password,

Amazing forget password email received in my inbox and i could change the password link on my forum.

Error in log,

no such error in log.

Thanks you Team and Illori for the instant support.  ;D
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Kindred on April 01, 2015, 07:52:25 PM
If you insist on using 2.1, you **REALLY** need to run a full upgrade weekly, at the very least
Title: Re: SMF 2.1 Beta 1 - users having issues with forget password option
Post by: Antes on April 02, 2015, 07:34:19 AM
Quote from: Kindred on April 01, 2015, 07:52:25 PM
If you insist on using 2.1, you **REALLY** need to run a full upgrade weekly, at the very least


+1, I even suggest you to check GH daily and do daily update if new PR merged.