oxonlineserveremailbuilder.php

Go to the documentation of this file.
00001 <?php
00002 
00011 class oxOnlineServerEmailBuilder
00012 {
00013 
00021     public function build($sBody)
00022     {
00024         $oExpirationEmail = oxNew('oxEmail');
00025         $oExpirationEmail->setSubject(oxRegistry::getLang()->translateString('SUBJECT_UNABLE_TO_SEND_VIA_CURL', null, true));
00026         $oExpirationEmail->setRecipient('[email protected]');
00027         $oExpirationEmail->setFrom($this->_getShopInfoAddress());
00028         $oExpirationEmail->setBody($sBody);
00029 
00030         return $oExpirationEmail;
00031     }
00032 
00038     private function _getShopInfoAddress()
00039     {
00040         $oShop = oxRegistry::getConfig()->getActiveShop();
00041 
00042         return $oShop->oxshops__oxinfoemail->value;
00043     }
00044 }