• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/mail/smtp/mailer.php
  • Класс: BitrixMainMailSmtpMailer
  • Вызов: Mailer::prepareBCCRecipients
private function prepareBCCRecipients($additional_headers)
{
	preg_match(self::HEADER_BCC_REGEX, $additional_headers, $matches);

	if ($matches)
	{
		$recipients = explode(',', trim($matches['emails']));

		foreach ($recipients as $to)
		{
			$to = self::parseAddresses($to) ?? [];
			if (!$to)
			{
				continue;
			}
			$this->addBCC($to[0]['address'], $to[0]['name']);
		}
	}
}