• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/sender.php
  • Класс: BitrixSenderPostingSender
  • Вызов: Sender::initRecipients
protected function initRecipients(): bool
{
	// if posting in new status, then import recipients from groups
	// and set right status for sending

	if (!$this->postingId)
	{
		return true;
	}

	if ($this->isTrigger)
	{
		return true;
	}

	if (
		($this->status !== PostingTable::STATUS_NEW)
		&& !$this->isReiterate
		&& ($this->letter->getData()['WAITING_RECIPIENT'] !== 'N')
	)
	{
		return true;
	}

	return Builder::create()->run($this->postingId);
}