Loading


Advertisement:

Author Topic: user-recover not send email recovery  (Read 1879 times)

nylessk

  • Newbie
  • *
  • Posts: 9
user-recover not send email recovery
« 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

teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #1 on: December 13, 2015, 07:04:17 pm »
Hi,

Have you tried with other themes? ???

Regards

nylessk

  • Newbie
  • *
  • Posts: 9
Re: user-recover not send email recovery
« Reply #2 on: December 13, 2015, 08:13:14 pm »
Yes, I've tried. but it's all the same.
I need urgent help.

teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #3 on: December 13, 2015, 08:21:10 pm »
Enable Debug to debug.log file as explained here and take note of any error showing when you try to Recover the password... ???

Regards

nylessk

  • Newbie
  • *
  • Posts: 9
Re: user-recover not send email recovery
« Reply #4 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...

teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #5 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

nylessk

  • Newbie
  • *
  • Posts: 9
Re: user-recover not send email recovery
« Reply #6 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.

teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #7 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

nylessk

  • Newbie
  • *
  • Posts: 9
Re: user-recover not send email recovery
« Reply #8 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.

teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #9 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

nylessk

  • Newbie
  • *
  • Posts: 9
Re: user-recover not send email recovery
« Reply #10 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. :'(


teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #11 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

nylessk

  • Newbie
  • *
  • Posts: 9
Re: user-recover not send email recovery
« Reply #12 on: December 15, 2015, 01:23:28 am »
This is what shows the debug.log
« Last Edit: December 15, 2015, 04:32:10 pm by nylessk »

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1570
  • osclass.work
Re: user-recover not send email recovery
« Reply #13 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).

teseo

  • Hero Member
  • *****
  • Posts: 5686
Re: user-recover not send email recovery
« Reply #14 on: December 15, 2015, 01:29:01 am »
And better edit your message to delete all that data.

Regards