• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/sender.php
  • Класс: BitrixSenderPostingSender
  • Вызов: Sender::canDenySendToRecipient
protected function canDenySendToRecipient($recipient) : bool
{
	return (
		empty($recipient['CONTACT_CODE']) ||
		$recipient['CONTACT_BLACKLISTED'] === 'Y' ||
		$recipient['CONTACT_UNSUBSCRIBED'] === 'Y' ||
		$recipient['CONTACT_MAILING_UNSUBSCRIBED'] === 'Y' ||
		Consent::isUnsub(
			$recipient['CONTACT_CONSENT_STATUS'],
			$recipient['CONTACT_CONSENT_REQUEST'],
			$this->message->getTransport()->getCode()
		) &&
		$this->needConsent()
	);
}