News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF 2.1 Beta 1 - users having issues with forget password option

Started by Sudhakar Arjunan, April 01, 2015, 04:31:50 PM

Previous topic - Next topic

Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum


Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Illori

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.

Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

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
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Kindred

If you insist on using 2.1, you **REALLY** need to run a full upgrade weekly, at the very least
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antes

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.

Advertisement: