source/Application/Controller/Admin/PriceAlarmSend.php
public function sendeMail($emailAddress, $productID, $priceAlarmId, $bidPrice)
    {
        $alarm = oxNew(\OxidEsales\Eshop\Application\Model\PriceAlarm::class);
        $alarm->load($priceAlarmId);

        $language = \OxidEsales\Eshop\Core\Registry::getLang();
        $languageId = (int) $alarm->oxpricealarm__oxlang->value;

        $oldLanguageId = $language->getTplLanguage();
        $language->setTplLanguage($languageId);

        $email = oxNew(\OxidEsales\Eshop\Core\Email::class);
        $success = (int) $email->sendPricealarmToCustomer($emailAddress, $alarm);

        $language->setTplLanguage($oldLanguageId);

        if ($success) {
            $alarm->oxpricealarm__oxsended = new \OxidEsales\Eshop\Core\Field(date("Y-m-d H:i:s"));
            $alarm->save();
        }
    }
public function sendeMail($emailAddress, $productID, $priceAlarmId, $bidPrice)
    {
        $alarm = oxNew(\OxidEsales\Eshop\Application\Model\PriceAlarm::class);
        $alarm->load($priceAlarmId);

        $language = \OxidEsales\Eshop\Core\Registry::getLang();
        $languageId = (int) $alarm->oxpricealarm__oxlang->value;

        $oldLanguageId = $language->getTplLanguage();
        $language->setTplLanguage($languageId);

        $email = oxNew(\OxidEsales\Eshop\Core\Email::class);
        $success = (int) $email->sendPricealarmToCustomer($emailAddress, $alarm);

        $language->setTplLanguage($oldLanguageId);

        if ($success) {
            $alarm->oxpricealarm__oxsended = new \OxidEsales\Eshop\Core\Field(date("Y-m-d H:i:s"));
            $alarm->save();
        }
    }
public function sendeMail ( $ emailAddress , $ productID , $ priceAlarmId , $ bidPrice ) { $ alarm = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ PriceAlarm :: class ) ; $ alarm -> load ( $ priceAlarmId ) ; $ language = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; $ languageId = ( int ) $ alarm -> oxpricealarm__oxlang -> value ; $ oldLanguageId = $ language -> getTplLanguage ( ) ; $ language -> setTplLanguage ( $ languageId ) ; $ email = oxNew ( \ OxidEsales \ Eshop \ Core \ Email :: class ) ; $ success = ( int ) $ email -> sendPricealarmToCustomer ( $ emailAddress , $ alarm ) ; $ language -> setTplLanguage ( $ oldLanguageId ) ; if ( $ success ) { $ alarm -> oxpricealarm__oxsended = new \ OxidEsales \ Eshop \ Core \ Field ( date ( "Y-m-d H:i:s" ) ) ; $ alarm -> save ( ) ; } }
Creates and sends email with price alarm information.

@param string $emailAddress Email address
@param string $productID    Product id
@param string $priceAlarmId Price alarm id
@param string $bidPrice     Bid price
Creates and sends email with price alarm information .