setProperty('modules.emails.send_mail_queue', false);
require_once('include/utils/CronUtils.php');
$CU = CronUtils::getInstance();
$cj = CronJob::getByName('MessagesSendNotifications');
if (empty($cj)) {
$cj = new CronJob();
$cj->name = 'MessagesSendNotifications';
$cj->active = 1;
$cj->singleRun = false;
$cj->fileName = 'cron/modules/Messages/SendNotifications.service.php';
$cj->timeout = 300;
$cj->repeat = 60;
$cj->maxAttempts = 0;
$CU->insertCronJob($cj);
}
if(!Vtiger_Utils::CheckTable($table_prefix.'_emails_not_send_queue')) {
$schema = '
';
$schema_obj = new adoSchema($adb->database);
$schema_obj->ExecuteSchema($schema_obj->ParseSchemaString($schema));
}
if(!Vtiger_Utils::CheckTable($table_prefix.'tbl_s_enqueue_targets')) {
$schema = '
';
$schema_obj = new adoSchema($adb->database);
$schema_obj->ExecuteSchema($schema_obj->ParseSchemaString($schema));
}