• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/mail/sender.php
  • Класс: BitrixMainMailSender
  • Вызов: Sender::confirm
static function confirm($ids)
{
	if (!empty($ids))
	{
		$res = InternalSenderTable::getList(array(
			'filter' => array(
				'@ID' => (array) $ids,
			),
		));

		while ($item = $res->fetch())
		{
			InternalSenderTable::update(
				(int) $item['ID'],
				array(
					'IS_CONFIRMED' => true,
				)
			);

			if (isset($item['OPTIONS']['__replaces']) && $item['OPTIONS']['__replaces'] > 0)
			{
				InternalSenderTable::delete(
					(int) $item['OPTIONS']['__replaces']
				);
			}
		}
	}
}