• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/smtp.php
  • Класс: BitrixMailSmtp
  • Вызов: Smtp::executeCommand
protected function executeCommand($command, &$error)
{
	$error = null;
	$response = false;

	$chunks = explode("x00", $command);

	$k = count($chunks);
	foreach ($chunks as $chunk)
	{
		$k--;

		$response = (array) $this->exchange($chunk, $error);

		if ($k > 0 && mb_strpos(end($response), '3') !== 0)
		{
			break;
		}
	}

	return $response;
}