D
D
Daniil Galkin2019-03-22 10:44:37
1C-Bitrix
Daniil Galkin, 2019-03-22 10:44:37

Why is the mail notification sent multiple times?

<?global $USER;
    if ($USER->IsAuthorized()){?>
       <?
        $rsUser = CUser::GetByID($USER->GetID());
        $arUser = $rsUser->Fetch();
        $arUser["UF_MOBILE_NUMBER"];
        $arEventFields = array(
        'Z_NAME' => $USER->GetFullName(),
        'Z_PHONE' => $USER->GetEmail(),
        'Z_MAIL' => $arUser["UF_MOBILE_NUMBER"],
        );
        CEvent::Send("NEW_USER_REGISTRATION", SITE_ID, $arEventFields);?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2019-03-25
@DgalkinD

Settings-Tools-SQL-query and execute the following query:
select * from b_event where event_name like '%NEW_USER_REGISTRATION%' order by date_insert desc
Look at how many times your event is processed, see if the event includes several mail templates

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question