source/Core/Email.php
public function sendStockReminder($basketContents, $subject = null)
    {
        $send = false;

        $articleList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $articleList->loadStockRemindProducts($basketContents);

        // nothing to remind?
        if ($articleList->count()) {
            $shop = $this->_getShop();

            //set mail params (from, fromName, smtp... )
            $this->_setMailParams($shop);
            $lang = \OxidEsales\Eshop\Core\Registry::getLang();

            $smarty = $this->_getSmarty();
            $this->setViewData("articles", $articleList);

            // Process view data array through oxOutput processor
            $this->_processViewArray();

            $this->setRecipient($shop->oxshops__oxowneremail->value, $shop->oxshops__oxname->getRawValue());
            $this->setFrom($shop->oxshops__oxowneremail->value, $shop->oxshops__oxname->getRawValue());
            $this->setBody($smarty->fetch(Registry::getConfig()->getTemplatePath($this->_sReminderMailTemplate, false)));
            $this->setAltBody("");
            $this->setSubject(($subject !== null) ? $subject : $lang->translateString('STOCK_LOW'));

            $send = $this->send();
        }

        return $send;
    }
public function sendStockReminder($basketContents, $subject = null)
    {
        $send = false;

        $articleList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $articleList->loadStockRemindProducts($basketContents);

        // nothing to remind?
        if ($articleList->count()) {
            $shop = $this->_getShop();

            //set mail params (from, fromName, smtp... )
            $this->_setMailParams($shop);
            $lang = \OxidEsales\Eshop\Core\Registry::getLang();

            $smarty = $this->_getSmarty();
            $this->setViewData("articles", $articleList);

            // Process view data array through oxOutput processor
            $this->_processViewArray();

            $this->setRecipient($shop->oxshops__oxowneremail->value, $shop->oxshops__oxname->getRawValue());
            $this->setFrom($shop->oxshops__oxowneremail->value, $shop->oxshops__oxname->getRawValue());
            $this->setBody($smarty->fetch(Registry::getConfig()->getTemplatePath($this->_sReminderMailTemplate, false)));
            $this->setAltBody("");
            $this->setSubject(($subject !== null) ? $subject : $lang->translateString('STOCK_LOW'));

            $send = $this->send();
        }

        return $send;
    }
public function sendStockReminder ( $ basketContents , $ subject = null ) { $ send = false ; $ articleList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ articleList -> loadStockRemindProducts ( $ basketContents ) ; // nothing to remind? if ( $ articleList -> count ( ) ) { $ shop = $ this -> _getShop ( ) ; //set mail params (from, fromName, smtp... ) $ this -> _setMailParams ( $ shop ) ; $ lang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; $ smarty = $ this -> _getSmarty ( ) ; $ this -> setViewData ( "articles" , $ articleList ) ; // Process view data array through oxOutput processor $ this -> _processViewArray ( ) ; $ this -> setRecipient ( $ shop -> oxshops__oxowneremail -> value , $ shop -> oxshops__oxname -> getRawValue ( ) ) ; $ this -> setFrom ( $ shop -> oxshops__oxowneremail -> value , $ shop -> oxshops__oxname -> getRawValue ( ) ) ; $ this -> setBody ( $ smarty -> fetch ( Registry :: getConfig ( ) -> getTemplatePath ( $ this -> _sReminderMailTemplate , false ) ) ) ; $ this -> setAltBody ( "" ) ; $ this -> setSubject ( ( $ subject !== null ) ? $ subject : $ lang -> translateString ( 'STOCK_LOW' ) ) ; $ send = $ this -> send ( ) ; } return $ send ; }
Sends reminder email to shop owner.

@param array  $basketContents array of objects to pass to template
@param string $subject        user defined subject [optional]

@return bool
Sends reminder email to shop owner .