Answer the question
In order to leave comments, you need to log in
How to send an email template after registration?
Sending a letter after registration does not work, I tried to tick the box Request registration confirmation by E-mail in the engraving module. But without the original. Letters come by themselves, only after registration for some reason not.
I tried to create an event handler, but I didn’t fully understand how to call the template correctly when sending a letter
/bitrix/php_interface/init.php
AddEventHandler('main', 'OnAfterUserRegister', 'OnAfterUserRegisterHandler');
function OnAfterUserRegisterHandler($arResult){
$event = new CEvent;
$event->SendImmediate('NEW_USER_CONFIRM', SITE_ID, $arResult);
}
Answer the question
In order to leave comments, you need to log in
The problem is in accessing the mail that the previous developer indicated
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question