M
M
mirexdoors2019-06-09 00:11:40
1C-Bitrix
mirexdoors, 2019-06-09 00:11:40

Why doesn't the mailing release status change?

Hello! I'm creating an example mailing list:

$arFields = array( 
  'STATUS' => 'D', 
  'BCC_TO_SEND' => "[email protected]", 
  'FROM_FIELD' => "[email protected]",
  'SUBJECT' => 'Тема сообщения', 
  'BODY_TYPE' => 'text', 
  'BODY' => 'Тело сообщения', 
  'RUB_ID' => 1, 
  'DIRECT_SEND' => 'Y', 
  'CHARSET' => 'UTF-8', 
); 

$posting = new CPosting; 
 
$ID = $posting->Add($arFields); 
if ($ID) {
   $posting ->ChangeStatus($ID, "P");
   $posting->AutoSend($ID);
}

The issue is created correctly, but it remains in the "Draft" status. Accordingly, there is no sending. What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question