• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sharing/notification/mail.php
  • Класс: BitrixCalendarSharingNotificationMail
  • Вызов: Mail::notifyAboutMeetingCreated
public function notifyAboutMeetingCreated(string $to): bool
{
	SharingHelper::setSiteLanguage();

	$subject = Loc::getMessage('EC_CALENDAR_SHARING_MAIL_SUBJECT_CREATED');
	$ownerName = $this->getOwner()['NAME'];
	$mailParams = $this->getBaseMailParams($ownerName);
	$arParams = [
		'STATUS' => self::MEETING_STATUS_CREATED,
		'CANCEL_LINK' => $this->eventLink->getUrl() . SharingHelper::ACTION_CANCEL,
		'ICS_LINK' => $this->eventLink->getUrl() . SharingHelper::ACTION_ICS,
		'VIDEOCONFERENCE_LINK' => $this->eventLink->getUrl() . SharingHelper::ACTION_CONFERENCE,
	];
	$arParams = array_merge($arParams, $mailParams);

	$files = null;
	if ($icsFileId = $this->getIcsFileId($ownerName, $arParams['EVENT_NAME']))
	{
		$files = [$icsFileId];
	}

	return $this->sendMessage($to, $arParams, $subject, $files);
}