34 $serializedSenders = str_replace(
"\'",
"'", $serializedSenders);
35 $serializedSenders = \Bitrix\Main\Text\Emoji::decode($serializedSenders);
36 $sendersCollection = self::unserializeMailSendersBatch($serializedSenders);
38 if (!is_iterable($sendersCollection))
40 AddMessage2Log(
'Ical senders collection is not iterable',
'calendar', 4);
44 $unsuccessfulSent = [];
46 foreach ($sendersCollection as $sender)
50 self::setLanguageId();
51 $sender->incrementCounterInvitations();
52 $currentSender = clone $sender;
56 $sender->executeAfterSuccessfulInvitation();
58 elseif ($sender->getCountAttempsSend() < self::MAX_ATTEMPS_INVITATION)
60 $unsuccessfulSent[] = $currentSender;
64 $failSent[$sender->getEventParentId()] = self::getDataForNotify($sender);
69 if (!empty($unsuccessfulSent))
74 if (!empty($failSent))
76 self::sentFailSentNotify($failSent);
103 $serializedData = str_replace(
"'",
"\'", serialize($sendersCollection));
104 $agentName =
"\\Bitrix\\Calendar\\ICal\\MailInvitation\\MailInvitationManager::manageSendingInvitation('"
107 $agentName = \Bitrix\Main\Text\Emoji::encode($agentName);
111 if (strlen($agentName) < 65000)