Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question