Answer the question
In order to leave comments, you need to log in
How to send password to user after registration?
The site has two pages - registration/index and registration in the header. When registering in the header, they simply ask you to enter your mail and a password is sent to the mail. In the case of registration on the /registration page, the user himself can enter a password, but it turns out to be inoperative and the user does not receive an email with the fact that he has registered with the password itself. How to find in Bitrix what initiates sending mail to a registered user? php_interface/init.php
is absent.
Those. I want all registration to be only on the user page and the user to receive a password by mail
<?$APPLICATION->IncludeComponent(
"bitrix:main.register",
"",
Array(
"AUTH" => "Y",
"REQUIRED_FIELDS" => array("EMAIL","NAME","LAST_NAME","PHONE"),
"SET_TITLE" => "Y",
"SHOW_FIELDS" => array("EMAIL","NAME","LAST_NAME"),
"SUCCESS_PAGE" => "",
"USER_PROPERTY" => array("UF_NUMBER"),
"USER_PROPERTY_NAME" => "Зарегистрируйтесь",
"USE_BACKURL" => "N"
)
);?>
Answer the question
In order to leave comments, you need to log in
By regular means - in any way. It is necessary to cling to the events of adding a new user (take the password from here) and the event of sending a letter (add a field with a password.).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question