I
I
IliaMal2021-08-03 11:06:02
1C-Bitrix
IliaMal, 2021-08-03 11:06:02

Why doesn't system.auth.forgotpasswd send an email with a control string (there is no event in b_event)?

Hello.

Implementing a password recovery form. I'm using the default template.
After submitting the form, I get a message that the code has been sent to the mail, but in fact, not that the letter does not arrive, the event is not even added to b_event.
I tried to use the $USER->SendPassword() method, the same story, the method returns "TYPE" => "OK", but in fact there is no reaction.

What could be the problem? How to debug?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IliaMal, 2021-08-30
@IliaMal

In the user profile settings in the administrative part of the site, you must specify the default site and language for receiving notifications. Also, the language must match the language of the template.
612c4cc49e84d508321669.png

R
Roman Gritsuk, 2021-08-03
@winer

The password recovery email is sent using CEvent::SendImmediate , so adding to b_event does not occur.
Maybe your mail is not working at all? check with mail function or some mail event

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question