Osclass forums

Support forums => old => Topic started by: nylessk on December 13, 2015, 05:30:15 pm

Title: user-recover not send email recovery
Post by: nylessk on December 13, 2015, 05:30:15 pm
Regards. I have a problem with It happens when users try to recover the password. not send email recovery
I need help.

Note: everything else works fine
Title: Re: user-recover not send email recovery
Post by: teseo on December 13, 2015, 07:04:17 pm
Hi,

Have you tried with other themes? ???

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 13, 2015, 08:13:14 pm
Yes, I've tried. but it's all the same.
I need urgent help.
Title: Re: user-recover not send email recovery
Post by: teseo on December 13, 2015, 08:21:10 pm
Enable Debug to debug.log file as explained here (https://doc.osclass.org/Debug_PHP_errors) and take note of any error showing when you try to Recover the password... ???

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 14, 2015, 01:59:42 am
Enable debug mode and not throw any errors. what can I do?

anyone this happened.

Estoy desesperado...
Title: Re: user-recover not send email recovery
Post by: teseo on December 14, 2015, 04:42:42 pm
Are you sure you did it correctly? ???

Add this at the very bottom of your theme functions.php:
Notes:
1.- Take care not to leave blank lines after this.
2.- If your theme functions.php doesn't end with ?> skip first line of my code.

Code: [Select]
<?php error_log("Deliberate error"0); ?>
and see if "Deliberate error" appears in your oc-content/debug.log

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 14, 2015, 11:22:22 pm
 I've done all corect. and still nothing. all mail is either sent only when users try to recover the password no mail is sent.
Title: Re: user-recover not send email recovery
Post by: teseo on December 14, 2015, 11:40:36 pm
Go to Admin Dashboard / Settings / Email templates. Edit "email_user_forgot_password" and click on "Test it". Still no mail?

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 14, 2015, 11:51:00 pm
the test email works good.

this is the only thing showing debug.log
[16:38:09 America/Santo_Domingo] Deliberate error

but the problem still remains. the user never receives mail recovery.

Regards.
Title: Re: user-recover not send email recovery
Post by: teseo on December 15, 2015, 12:09:14 am
I guess you have done the test with several users? ???

You may use disposable emails at mailinator.com to create some testing users...

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 15, 2015, 12:33:53 am
I've tried with different emails. but nothing happens. no mail is sent recovery

Not how to solve this. :'(

Title: Re: user-recover not send email recovery
Post by: teseo on December 15, 2015, 01:04:02 am
Another test to check if the function managing sending of that mail is reached:

Add this at the very bottom of your theme functions.php:
Notes:
1.- Take care not to leave blank lines after this.
2.- If your theme functions.php doesn't end with ?> skip first line of my code.

Code: [Select]
<?php
function cust_test_recover($text$user$password) {
    
error_log($text '***' $password PHP_EOL 0);
    
error_log(json_encode($user), 0);
    
    return 
$text;
}

osc_add_filter('email_user_forgot_password_description''cust_test_recover');
?>


Check the output in debug log, you should see the body text of the email, the link to recover password and all the User data.

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 15, 2015, 01:23:28 am
This is what shows the debug.log
Title: Re: user-recover not send email recovery
Post by: dev101 on December 15, 2015, 01:24:27 am
Check your mail logs on the server or ask your hosting to provide them for you, you will get all the answers there if email was actually sent or rejected (and why).
Title: Re: user-recover not send email recovery
Post by: teseo on December 15, 2015, 01:29:01 am
And better edit your message to delete all that data.

Regards
Title: Re: user-recover not send email recovery
Post by: nylessk on December 15, 2015, 04:36:05 pm
I'll have to give up use Osclass.

if before starting and is giving me problems, I do not want to imagine a future.

thanks to those trying to help :'(
Title: Re: user-recover not send email recovery
Post by: dev101 on December 15, 2015, 05:13:53 pm
Well, you have to be prepared for problems, no matter what platform you choose. They will pop-up eventually, statistically.
But, you have to solve them. Check your mail logs and see what you may find there, maybe it is not related, maybe it is something trivial. Also, make sure that you have configured your email server properly.
Title: Re: user-recover not send email recovery
Post by: nylessk on December 15, 2015, 05:24:16 pm
Mail server is configured well.

All emails are sent correctly.
not only sends the password recovery.

regards.
Title: Re: user-recover not send email recovery
Post by: dev101 on December 15, 2015, 09:35:14 pm
Well, I cannot reproduce that issue with latest 3.5.9 (and that function was not changed at all in the recent versions anyway), so something else is the cause of this problem. You need to show some problem-solving initiative on your end, so we can provide meaningful help.

Regards
Title: Re: user-recover not send email recovery
Post by: SmaRTeY on December 17, 2015, 02:12:32 am
Where is your site so I can test as a user?

Yes, I've tried. but it's all the same.
I need urgent help.
Title: Re: user-recover not send email recovery
Post by: Kean on October 14, 2016, 02:25:32 pm
I have to say that I have exactly the same problems. All other mails are moving as normal, but only the password recovery mail is not sent to the user, who needs a new password or has forgotten it.
Title: Re: user-recover not send email recovery
Post by: Kean on December 01, 2016, 10:06:27 am
It seems that the password recovery e-mail will will start working a couple of hours after the request has been made. After that the password recovery e-mails will dispatch immediately.

It seems that the password recovery feature will "slumber" if not used. My site is not so busy, so that may be the reason.

Are there some settings that could alleviate this problem ?
Title: Re: user-recover not send email recovery
Post by: _CONEJO on December 01, 2016, 01:03:31 pm
It seems that the password recovery e-mail will will start working a couple of hours after the request has been made. After that the password recovery e-mails will dispatch immediately.

It seems that the password recovery feature will "slumber" if not used. My site is not so busy, so that may be the reason.

Are there some settings that could alleviate this problem ?

That's probably your email server or some other problem. There's no scheduling in Osclass' password recovery emails, ie, they are sent immediately. If they don't arrive immediately, then the problem must be somewhere in the middle (your email server or the destination email server)
Title: Re: user-recover not send email recovery
Post by: leito on April 17, 2018, 11:42:31 pm
I have a problem with It happens when users try to recover the password. not send email recovery
I need help.
Title: Re: user-recover not send email recovery
Post by: Athlas on October 26, 2018, 10:14:34 am
Damnn!

 I do not have a line at all the "Admin Dashboard / Settings / Email templates. Edit "email_user_forgot_password"

how is this possible?how to get it back  :o
Title: Re: user-recover not send email recovery
Post by: leito on May 25, 2019, 07:33:52 pm
Hi, I still have the problem of recovering user passwords. All the other emails arrive perfect in test mode, they all work, but when the password is recovered from users, it does not send the mail that may be happening that does not work.

attached capture how I have configured the email server

(https://i.ibb.co/9cPbwHR/Clipboard01.jpg)