• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/mail/internal/blacklist.php
  • Класс: BitrixMainMailInternalBlacklistTable
  • Вызов: BlacklistTable::hasBlacklistedEmails
static function hasBlacklistedEmails()
{
	static $hasEmails = null;
	if ($hasEmails === null)
	{
		$row = static::getRow([
			'select' => ['ID'],
			'limit' => 1,
			'order' => ['ID' => 'ASC'],
			'cache' => ['ttl' => 36000]
		]);

		$hasEmails = $row !== null;
	}

	return $hasEmails;
}