- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/mailingchain.php
- Класс: BitrixSenderMailingChainTable
- Вызов: MailingChainTable::canReSendErrorRecipients
static function canReSendErrorRecipients($id)
{
$mailingChainDb = static::getList(array(
'select' => array('POSTING_ID'),
'filter' => array(
'=ID' => $id,
'!REITERATE' => 'Y',
'!POSTING_ID' => null,
'=STATUS' => static::STATUS_END,
),
));
if($mailingChain = $mailingChainDb->fetch())
{
$errorRecipientDb = PostingRecipientTable::getList(array(
'select' => array('ID'),
'filter' => array(
'=POSTING_ID' => $mailingChain['POSTING_ID'],
'=STATUS' => PostingRecipientTable::SEND_RESULT_ERROR
),
'limit' => 1
));
if($errorRecipientDb->fetch())
{
return true;
}
}
return false;
}