• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/eventlog/actionsms.php
  • Класс: BitrixMainEventLogActionSms
  • Вызов: ActionSms::send
public function send(Notification $notification)
{
	$site = CSite::GetDefSite();

	$fields = static::getNotificationFields($notification);
	$fields["PHONE_NUMBER"] = $this->getRecipient();
	$fields["ADDITIONAL_TEXT"] = $this->getText();

	$sms = new BitrixMainSmsEvent(self::EVENT_TYPE, $fields);
	$sms->setSite($site);
	$sms->send();
}