D
D
den-masonov2017-03-08 21:02:16
1C-Bitrix
den-masonov, 2017-03-08 21:02:16

Auto-sending in Bitrix does not work. Who faced?

Hello.
Auto mailing does not work, although when checking the auto mailing template everything is displayed (news for the selected period is selected). Transferred agents to crowns.
Here is the contents of the cron_events file:

<?php
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../..");
$DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"];

define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS",true);
define("BX_CRONTAB", true);
define('BX_NO_ACCELERATOR_RESET', true);

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");

@set_time_limit(0);
@ignore_user_abort(true);

CAgent::CheckAgents();

// define("BX_CRONTAB_SUPPORT", true);
// define("BX_CRONTAB", true);

CEvent::CheckEvents();


if (CModule::IncludeModule("subscribe"))
{
      CPostingTemplate::Execute();
      
      $cPosting = new CPosting;
      $cPosting->AutoSend();
      
      
}

if(CModule::IncludeModule('sender'))
{
  \Bitrix\Sender\MailingManager::checkPeriod(false);
  \Bitrix\Sender\MailingManager::checkSend();
}

require($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/tools/backup.php");
?>

What am I missing? I searched all the forums - I did not find a solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Axian Ltd., 2017-03-08
@AxianLTD

Set up mail in php on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question