Model/Newsletter/SubscriberWithSalesExporter.php
private function registerWithImporter($emailContactIds, $subscribersFile, $websiteId)
    {
        $subscriberNum = count($emailContactIds);
        if (is_file($this->file->getFilePath($subscribersFile))) {
            if ($subscriberNum > 0) {
                //register in queue with importer
                $check = $this->importerFactory->create()
                    ->registerQueue(
                        \Dotdigitalgroup\Email\Model\Importer::IMPORT_TYPE_SUBSCRIBERS,
                        '',
                        \Dotdigitalgroup\Email\Model\Importer::MODE_BULK,
                        $websiteId,
                        $subscribersFile
                    );
                //mark contacts as imported
                if ($check) {
                    $this->emailContactResource->updateSubscribers($emailContactIds);
                }
            }
        }
    }
private function registerWithImporter($emailContactIds, $subscribersFile, $websiteId)
    {
        $subscriberNum = count($emailContactIds);
        if (is_file($this->file->getFilePath($subscribersFile))) {
            if ($subscriberNum > 0) {
                //register in queue with importer
                $check = $this->importerFactory->create()
                    ->registerQueue(
                        \Dotdigitalgroup\Email\Model\Importer::IMPORT_TYPE_SUBSCRIBERS,
                        '',
                        \Dotdigitalgroup\Email\Model\Importer::MODE_BULK,
                        $websiteId,
                        $subscribersFile
                    );
                //mark contacts as imported
                if ($check) {
                    $this->emailContactResource->updateSubscribers($emailContactIds);
                }
            }
        }
    }
private function registerWithImporter ( $ emailContactIds , $ subscribersFile , $ websiteId ) { $ subscriberNum = count ( $ emailContactIds ) ; if ( is_file ( $ this -> file -> getFilePath ( $ subscribersFile ) ) ) { if ( $ subscriberNum > 0 ) { //register in queue with importer $ check = $ this -> importerFactory -> create ( ) -> registerQueue ( \ Dotdigitalgroup \ Email \ Model \ Importer :: IMPORT_TYPE_SUBSCRIBERS , '' , \ Dotdigitalgroup \ Email \ Model \ Importer :: MODE_BULK , $ websiteId , $ subscribersFile ) ; //mark contacts as imported if ( $ check ) { $ this -> emailContactResource -> updateSubscribers ( $ emailContactIds ) ; } } } }
Register data with importer

@param array $emailContactIds
@param string $subscribersFile
@param $websiteId
Register data with importer